Changeset View
Changeset View
Standalone View
Standalone View
src/server/connection.h
Show All 40 Lines | |||||
41 | { | 41 | { | ||
42 | namespace Server | 42 | namespace Server | ||
43 | { | 43 | { | ||
44 | 44 | | |||
45 | class Handler; | 45 | class Handler; | ||
46 | class Response; | 46 | class Response; | ||
47 | class DataStore; | 47 | class DataStore; | ||
48 | class Collection; | 48 | class Collection; | ||
49 | class CollectionReferenceManager; | | |||
50 | 49 | | |||
51 | /** | 50 | /** | ||
52 | An Connection represents one connection of a client to the server. | 51 | An Connection represents one connection of a client to the server. | ||
53 | */ | 52 | */ | ||
54 | class Connection : public AkThread | 53 | class Connection : public AkThread | ||
55 | { | 54 | { | ||
56 | Q_OBJECT | 55 | Q_OBJECT | ||
57 | public: | 56 | public: | ||
58 | explicit Connection(quintptr socketDescriptor, QObject *parent = nullptr); | 57 | explicit Connection(quintptr socketDescriptor, QObject *parent = nullptr); | ||
59 | ~Connection() override; | 58 | ~Connection() override; | ||
60 | 59 | | |||
61 | virtual DataStore *storageBackend(); | 60 | virtual DataStore *storageBackend(); | ||
62 | 61 | | |||
63 | CollectionReferenceManager *collectionReferenceManager(); | | |||
64 | | ||||
65 | CommandContext *context() const; | 62 | CommandContext *context() const; | ||
66 | 63 | | |||
67 | /** | 64 | /** | ||
68 | Returns @c true if this connection belongs to the owning resource of @p item. | 65 | Returns @c true if this connection belongs to the owning resource of @p item. | ||
69 | */ | 66 | */ | ||
70 | bool isOwnerResource(const PimItem &item) const; | 67 | bool isOwnerResource(const PimItem &item) const; | ||
71 | bool isOwnerResource(const Collection &collection) const; | 68 | bool isOwnerResource(const Collection &collection) const; | ||
72 | 69 | | |||
▲ Show 20 Lines • Show All 102 Lines • Show Last 20 Lines |