diff -r c39a6cfd1fb9 -r be09cf1f39dd smf/smfservermodule/smfserver/smfserverglobal.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/smf/smfservermodule/smfserver/smfserverglobal.h Tue May 18 17:37:12 2010 +0530 @@ -0,0 +1,102 @@ +/** + * Copyright (c) 2010 Sasken Communication Technologies Ltd. + * All rights reserved. + * This component and the accompanying materials are made available + * under the terms of the "Eclipse Public License v1.0" + * which accompanies this distribution, and is available + * at the URL "http://www.eclipse.org/legal/epl-v10.html" + * + * Initial Contributors: + * Chandradeep Gandhi, Sasken Communication Technologies Ltd - Initial contribution + * + * Contributors: + * Manasij Roy, Nalina Hariharan + * + * Description: + * SMF Server wide global const and macros, to be shared among SMF components. + * + */ + +#ifndef SMFSERVERGLOBAL_H_ +#define SMFSERVERGLOBAL_H_ + +#include +/** + * Enum declaration for Network status information + */ +enum SmfNetworkStatus + { + SmfNetworkConnectedHome = 0, + SmfNetworkConnectedRoaming, // value = 1 + SmfNetworkStateNotKnown, // value = 2 + SmfNetworkConnected, // value = 3 + SmfNetworkNotConnected // value = 4 + }; + +/** + * Enum declaration for result of transport initialize operation + */ +enum SmfTransportInitializeResult + { + SmfTransportInitNetworkNotAvailable = 0, + SmfTransportInitRoamingNetworkUsageNotEnabled, // value = 1 + SmfTransportInitNoError // value = 2 + }; + +/** + * The enumeration used to indicate result of plugin manager operations + */ +enum SmfPluginManagerResult + { + SmfPluginNoError = 0, + SmfPluginNotFound, + SmfPluginNotLoaded, + SmfPluginLoaded, + SmfPluginLoadError, + SmfPluginAuthorised, + SmfPluginNotAuthorised, + SmfPluginRequestCreated, + SmfPluginRequestCreationFailed, + SmfPluginUnknownService, + SmfPluginRequestSendingFailed, + SmfPluginSOPCheckFailed, + SmfPluginServiceError, + SmfPluginResponseParsed, + SmfPluginResponseParseFailure, + SmfPluginSendRequestAgain, + SmfPluginUnknownError + }; + +/** + * The structure used to track the data usage of each plugins + */ +struct SmfPluginDataUsage + { + /** + * Application that called the plugin + */ + QString iAppName; + + /** + * Interface implemented by the plugin + */ + QString iInterfaceName; + + /** + * The service provider + */ + QString iServiceProviderName; + + /** + * number of bytes sent for this plugin + */ + uint iBytesSent; + + /** + * number of bytes received for this plugin + */ + uint iBytesReceived; + + }; + +#endif /* SMFSERVERGLOBAL_H_ */