datacommsserver/esockserver/inc/es_commsdataobject.h
branchRCL_3
changeset 69 9d7ce34704c8
parent 66 cbb19216b74d
child 70 b564fb5fd78b
equal deleted inserted replaced
67:00c6709d25aa 69:9d7ce34704c8
   110 		{
   110 		{
   111 		/** Client requested that the object store its data on a provider */
   111 		/** Client requested that the object store its data on a provider */
   112 		EOperationSet = 0,
   112 		EOperationSet = 0,
   113 
   113 
   114 		/** Client requested that the object retreive data from a provider */
   114 		/** Client requested that the object retreive data from a provider */
   115 		EOperationGet = 1,
   115 		EOperationGet = 1
   116 		
       
   117 		/** 
       
   118 		Default value for uninitialized requests.
       
   119 		This is only used as a sanity checking measure where the implementation of a 
       
   120 		CommsDataObject has failed to explicitly specify the client requested operation, i.e. get or set	
       
   121 		*/
       
   122 		EOperationUninitialized = 0xFFFFFFFF
       
   123 		};
   116 		};
   124 
   117 
   125 	
   118 	
   126 	/**
   119 	/**
   127 	Flags that identify the operations that a CommsDataObject supports.
   120 	Flags that identify the operations that a CommsDataObject supports.
   165 	least the Get or Set operation.
   158 	least the Get or Set operation.
   166 	
   159 	
   167 	@see MAccessPointConfigApi
   160 	@see MAccessPointConfigApi
   168 	*/
   161 	*/
   169 	XCommsDataObject(TUint aFlags)
   162 	XCommsDataObject(TUint aFlags)
   170 		: iOperationMode(EOperationUninitialized), iReqItfExtId((TUint)EAccessPointConfigApi), iFlags(aFlags)
   163 		: iReqItfExtId((TUint)EAccessPointConfigApi), iFlags(aFlags)
   171 		{
   164 		{
   172 		__ASSERT_DEBUG((aFlags & ~EAllFlags) == 0, User::Panic(KSpecAssert_ESocks_cmsdtbjct, 1));
   165 		__ASSERT_DEBUG((aFlags & ~EAllFlags) == 0, User::Panic(KSpecAssert_ESocks_cmsdtbjct, 1));
   173 		__ASSERT_DEBUG((aFlags & EOperationSupportMask) != 0, User::Panic(KSpecAssert_ESocks_cmsdtbjct, 2));
   166 		__ASSERT_DEBUG((aFlags & EOperationSupportMask) != 0, User::Panic(KSpecAssert_ESocks_cmsdtbjct, 2));
   174 		}
   167 		}
   175 
   168 
   183 	least the Get or Set operation.
   176 	least the Get or Set operation.
   184 	
   177 	
   185 	@param aReqItfExtId An interface identifier from TSupportedCommsApiExt.
   178 	@param aReqItfExtId An interface identifier from TSupportedCommsApiExt.
   186 	*/
   179 	*/
   187 	XCommsDataObject(TUint aFlags, TUint aReqItfExtId)
   180 	XCommsDataObject(TUint aFlags, TUint aReqItfExtId)
   188 		: iOperationMode(EOperationUninitialized), iReqItfExtId(aReqItfExtId), iFlags(aFlags)
   181 		: iReqItfExtId(aReqItfExtId), iFlags(aFlags)
   189 		{
   182 		{
   190 		__ASSERT_DEBUG((aFlags & ~EAllFlags) == 0, User::Panic(KSpecAssert_ESocks_cmsdtbjct, 3));
   183 		__ASSERT_DEBUG((aFlags & ~EAllFlags) == 0, User::Panic(KSpecAssert_ESocks_cmsdtbjct, 3));
   191 		__ASSERT_DEBUG((aFlags & EOperationSupportMask) != 0, User::Panic(KSpecAssert_ESocks_cmsdtbjct, 4));
   184 		__ASSERT_DEBUG((aFlags & EOperationSupportMask) != 0, User::Panic(KSpecAssert_ESocks_cmsdtbjct, 4));
   192 		}
   185 		}
   193 
   186