1 /** |
|
2 * Copyright (c) 2010 Sasken Communication Technologies Ltd. |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of the "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html" |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Chandradeep Gandhi, Sasken Communication Technologies Ltd - Initial contribution |
|
11 * |
|
12 * Contributors: |
|
13 * Manasij Roy, Nalina Hariharan |
|
14 * |
|
15 * Description: |
|
16 * SMF Server wide global const and macros, to be shared among SMF components. |
|
17 * |
|
18 */ |
|
19 |
|
20 #ifndef SMFSERVERGLOBAL_H_ |
|
21 #define SMFSERVERGLOBAL_H_ |
|
22 |
|
23 #include <QString> |
|
24 /** |
|
25 * Enum declaration for Network status information |
|
26 */ |
|
27 enum SmfNetworkStatus |
|
28 { |
|
29 SmfNetworkConnectedHome = 0, |
|
30 SmfNetworkConnectedRoaming, // value = 1 |
|
31 SmfNetworkStateNotKnown, // value = 2 |
|
32 SmfNetworkConnected, // value = 3 |
|
33 SmfNetworkNotConnected // value = 4 |
|
34 }; |
|
35 |
|
36 /** |
|
37 * Enum declaration for result of transport initialize operation |
|
38 */ |
|
39 enum SmfTransportInitializeResult |
|
40 { |
|
41 SmfTransportInitNetworkNotAvailable = 0, |
|
42 SmfTransportInitRoamingNetworkUsageNotEnabled, // value = 1 |
|
43 SmfTransportInitNoError // value = 2 |
|
44 }; |
|
45 |
|
46 /** |
|
47 * The enumeration used to indicate result of plugin manager operations |
|
48 */ |
|
49 enum SmfPluginManagerResult |
|
50 { |
|
51 SmfPluginNoError = 0, |
|
52 SmfPluginNotFound, |
|
53 SmfPluginNotLoaded, |
|
54 SmfPluginLoaded, |
|
55 SmfPluginLoadError, |
|
56 SmfPluginAuthorised, |
|
57 SmfPluginNotAuthorised, |
|
58 SmfPluginRequestCreated, |
|
59 SmfPluginRequestCreationFailed, |
|
60 SmfPluginUnknownService, |
|
61 SmfPluginRequestSendingFailed, |
|
62 SmfPluginSOPCheckFailed, |
|
63 SmfPluginServiceError, |
|
64 SmfPluginResponseParsed, |
|
65 SmfPluginResponseParseFailure, |
|
66 SmfPluginSendRequestAgain, |
|
67 SmfPluginUnknownError |
|
68 }; |
|
69 |
|
70 /** |
|
71 * The structure used to track the data usage of each plugins |
|
72 */ |
|
73 struct SmfPluginDataUsage |
|
74 { |
|
75 /** |
|
76 * Application that called the plugin |
|
77 */ |
|
78 QString iAppName; |
|
79 |
|
80 /** |
|
81 * Interface implemented by the plugin |
|
82 */ |
|
83 QString iInterfaceName; |
|
84 |
|
85 /** |
|
86 * The service provider |
|
87 */ |
|
88 QString iServiceProviderName; |
|
89 |
|
90 /** |
|
91 * number of bytes sent for this plugin |
|
92 */ |
|
93 uint iBytesSent; |
|
94 |
|
95 /** |
|
96 * number of bytes received for this plugin |
|
97 */ |
|
98 uint iBytesReceived; |
|
99 |
|
100 }; |
|
101 |
|
102 #endif /* SMFSERVERGLOBAL_H_ */ |
|