syncmlfw/ds/syncagent/inc/NSmlDSCmds.h
branchRCL_3
changeset 61 b183ec05bd8c
parent 30 2de6635c154b
child 62 19bba8228ff0
equal deleted inserted replaced
59:13d7c31c74e0 61:b183ec05bd8c
    33 class CWBXMLDevInfGenerator;
    33 class CWBXMLDevInfGenerator;
    34 class CWBXMLDevInfDocHandler;
    34 class CWBXMLDevInfDocHandler;
    35 class CNSmlDbCaps;
    35 class CNSmlDbCaps;
    36 class CNSmlDbMetaHandler;
    36 class CNSmlDbMetaHandler;
    37 class CNSmlDSBatchBuffer;
    37 class CNSmlDSBatchBuffer;
       
    38 class CNSmlDSOperatorSettings;
    38 
    39 
    39 inline void DeleteRPointerArray( TAny* aPtr )
    40 inline void DeleteRPointerArray( TAny* aPtr )
    40 	{
    41 	{
    41 	( REINTERPRET_CAST ( RPointerArray<CNSmlDbCaps>*, aPtr ) )->ResetAndDestroy();
    42 	( REINTERPRET_CAST ( RPointerArray<CNSmlDbCaps>*, aPtr ) )->ResetAndDestroy();
    42 	}
    43 	}
   214 		/**
   215 		/**
   215 		* From CNSmlCmdsBase. Generates the end tag of the SyncML element.
   216 		* From CNSmlCmdsBase. Generates the end tag of the SyncML element.
   216 		* @param aFinal ETrue if this is the last message from the client.
   217 		* @param aFinal ETrue if this is the last message from the client.
   217 		*/
   218 		*/
   218 		void DoEndMessageL( TBool aFinal );
   219 		void DoEndMessageL( TBool aFinal );
   219 
   220 		
   220 		/**
   221         /**
   221 	    * Checks if received Alert Code is a sync type and tries to convert
   222          * Checks if received Alert Code is a sync type and tries to convert
   222 	    * it to Sync Type (TSmlSyncType). If conversion is succesful, the
   223          * it to Sync Type (TSmlSyncType). If conversion is succesful, the
   223 	    * value is stored into Cenrep file (KCRUidOperatorDatasyncInternalKeys).
   224          * value is stored into Cenrep file (KCRUidOperatorDatasyncErrorKeys).
   224 	    * @param aAlertCode received alert code.
   225          * @param aAlertCode received alert code.
   225 	    */
   226          */
   226 	    void StoreSyncType( const TDes8& aAlertCode );
   227         void StoreSyncType( const TDes8& aAlertCode );
   227 
   228 
   228 		        
   229 		        
   229     private: // constructors and operators
   230     private: // constructors and operators
   230     	/**
   231     	/**
   231     	* C++ constructor.
   232     	* C++ constructor.
   322 		* @param aLiteralUid UID in literal form.
   323 		* @param aLiteralUid UID in literal form.
   323 		* @param aNumericUid On return contains UID in numeric form.
   324 		* @param aNumericUid On return contains UID in numeric form.
   324 		* @result KErrNone if the conversion succeeded.
   325 		* @result KErrNone if the conversion succeeded.
   325 		*/
   326 		*/
   326 		TInt ConvertUid( const TDesC8& aLiteralUid, TSmlDbItemUid& aNumericUid );
   327 		TInt ConvertUid( const TDesC8& aLiteralUid, TSmlDbItemUid& aNumericUid );
   327 		
   328 
   328 		/*
   329 		/**
   329 		 * Adds operator specific extension devInf fields XNam and XVal
   330 		 * Adds operator specific extensions (XNam, XVal) to device info.
   330 		 * Currently only one XNam and one corresponding XVal value are supported
   331 		 * The XNam and XVal to be included in the device info are read from
   331 		 * These two values are read from central repository 0x2002682E (defined in nsmloperatordefines.h)
   332 		 * an ECom plugin, which implements Device Info Extension Data Container 
   332 		 * from keys KNsmlOperatorDevInfExtXNam (0x04) and KNsmlOperatorDevInfExtXVal (0x05)
   333 		 * plugin interface (UID: 0x2002DC7C).
       
   334 		 * 
       
   335 		 * @param aDevInf Device info object, to which the operator extensions
       
   336 		 *  are added.
   333 		 */
   337 		 */
   334 		void InsertOperatorExtensionDevInfFieldsL( SmlDevInfDevInfPtr_t& aDevInf );
   338 		void InsertOperatorExtensionDevInfFieldsL( SmlDevInfDevInfPtr_t& aDevInf );
       
   339 
       
   340 		/**
       
   341 		 * Appends the given dev info extension item to the extension list.
       
   342 		 * 
       
   343 		 * @param aExtList Extension list, to which the new item is to be added.
       
   344 		 *  On return, the list includes the given new item.
       
   345 		 * @param aExtItem Extension item to be added to the extension list.
       
   346 		 */
       
   347 		void AppendToExtensionListL( SmlDevInfExtListPtr_t aExtList, 
       
   348 			SmlDevInfExtPtr_t aExtItem );
       
   349 
       
   350 		/**
       
   351 		 * Appends a new XVal (i.e. extension value) item with the given XVal 
       
   352 		 * string to the XVal list.
       
   353 		 * 
       
   354 		 * @param aXValList XVal list, to which the the new XVal item is to be added.
       
   355 		 *  On return, the list includes the given new item.
       
   356 		 * @param aXVal A string, which is added to the XVal list as a new item.
       
   357 		 */
       
   358 		void AppendToXValListL( SmlPcdataListPtr_t aXValList,
       
   359 			const TDesC8& aXVal );
   335 
   360 
   336 	private: // data	
   361 	private: // data	
   337 		// batched items buffer
   362 		// batched items buffer
   338 		CNSmlDSBatchBuffer* iBatchBuffer;
   363 		CNSmlDSBatchBuffer* iBatchBuffer;
   339 		// device info switch
   364 		// device info switch