|
1 /** |
|
2 This file is part of CWRT package ** |
|
3 |
|
4 Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). ** |
|
5 |
|
6 This program is free software: you can redistribute it and/or modify |
|
7 it under the terms of the GNU (Lesser) General Public License as |
|
8 published by the Free Software Foundation, version 2.1 of the License. |
|
9 This program is distributed in the hope that it will be useful, but |
|
10 WITHOUT ANY WARRANTY; without even the implied warranty of |
|
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|
12 (Lesser) General Public License for more details. You should have |
|
13 received a copy of the GNU (Lesser) General Public License along |
|
14 with this program. If not, see <http://www.gnu.org/licenses/>. |
|
15 */ |
|
16 |
|
17 |
|
18 #ifndef clientinfo_h |
|
19 #define clientinfo_h |
|
20 |
|
21 #include <QObject> |
|
22 #include <QString> |
|
23 |
|
24 namespace WRT { |
|
25 |
|
26 // FORWARD DECLARATIONS |
|
27 class ClientInfo |
|
28 { |
|
29 public: |
|
30 /*! |
|
31 * Sets the client's name |
|
32 * @param aName - Client's name |
|
33 */ |
|
34 inline void setName(const QString &aName) { iName = aName; } |
|
35 |
|
36 /*! |
|
37 * Gets the client's name |
|
38 */ |
|
39 inline QString name() const { return iName; } |
|
40 |
|
41 /*! |
|
42 * Sets the client's process Id |
|
43 */ |
|
44 inline void setProcessId(const qint64 aProcessId) { iProcessId = aProcessId; } |
|
45 |
|
46 /*! |
|
47 * Gets the client's process ID |
|
48 */ |
|
49 inline qint64 processId() const { return iProcessId; } |
|
50 |
|
51 /*! |
|
52 * Sets the client's vendor ID |
|
53 */ |
|
54 inline void setVendorId(const qint64 aVendorId) { iVendorId = aVendorId; } |
|
55 |
|
56 /*! |
|
57 * Gets the client's vendor ID |
|
58 */ |
|
59 inline qint64 vendorId() const { return iVendorId; } |
|
60 |
|
61 /*! |
|
62 * Set the session ID |
|
63 */ |
|
64 inline void setSessionId( qint32 aSessionId ) { iSessionId = aSessionId; } |
|
65 |
|
66 /*! |
|
67 * Get the session ID |
|
68 */ |
|
69 inline qint32 sessionId() const { return iSessionId; } |
|
70 |
|
71 private: |
|
72 QString iName; |
|
73 qint64 iProcessId; |
|
74 qint64 iVendorId; |
|
75 qint32 iSessionId; |
|
76 }; |
|
77 } |
|
78 |
|
79 #endif //clientinfo_h |