Changeset View
Changeset View
Standalone View
Standalone View
src/server/aklocalserver.h
Show All 27 Lines | |||||
28 | { | 28 | { | ||
29 | 29 | | |||
30 | class AkLocalServer : public QLocalServer | 30 | class AkLocalServer : public QLocalServer | ||
31 | { | 31 | { | ||
32 | Q_OBJECT | 32 | Q_OBJECT | ||
33 | public: | 33 | public: | ||
34 | explicit AkLocalServer(QObject *parent = nullptr); | 34 | explicit AkLocalServer(QObject *parent = nullptr); | ||
35 | 35 | | |||
36 | #ifdef Q_OS_FREEBSD | ||||
37 | bool listen(const QString &name); | ||||
38 | #endif | ||||
39 | | ||||
36 | Q_SIGNALS: | 40 | Q_SIGNALS: | ||
37 | void newConnection(quintptr socketDescriptor); | 41 | void newConnection(quintptr socketDescriptor); | ||
38 | 42 | | |||
39 | protected: | 43 | protected: | ||
40 | void incomingConnection(quintptr socketDescriptor) override; | 44 | void incomingConnection(quintptr socketDescriptor) override; | ||
41 | }; | 45 | }; | ||
42 | 46 | | |||
43 | } // namespace Server | 47 | } // namespace Server | ||
44 | } // namespace Akonadi | 48 | } // namespace Akonadi | ||
45 | 49 | | |||
46 | #endif | 50 | #endif |