dcmofw/dcmoserver/inc/dcmoserver.h
branchRCL_3
changeset 24 13d7c31c74e0
parent 0 b497e44ab2fc
child 25 b183ec05bd8c
equal deleted inserted replaced
23:4af31167ea77 24:13d7c31c74e0
    22 
    22 
    23 #include <e32base.h>
    23 #include <e32base.h>
    24 #include "dcmoclientserver.h"
    24 #include "dcmoclientserver.h"
    25 #include "dcmoconst.h"
    25 #include "dcmoconst.h"
    26 #include "dcmonotifieraob.h"
    26 #include "dcmonotifieraob.h"
    27 
    27 #include <lawmocallbackinterface.h>
    28 // CONSTANTS
    28 // CONSTANTS
    29 const TUid KCRUidDCMOServer={0x2001FE47};
    29 const TUid KCRUidDCMOServer={0x2001FE47};
    30 const TInt KDCMOKeyMaxNumber = 16;
    30 const TInt KDCMOKeyMaxNumber = 16;
    31 // FORWARD DECLARATIONS
    31 // FORWARD DECLARATIONS
    32 // CLASS DECLARATION
    32 // CLASS DECLARATION
    33 
    33 class CLAWMOPluginInterface;
    34 /**
    34 /**
    35 *  CDCMOServer
    35 *  CDCMOServer
    36 *  Description.
    36 *  Description.
    37 */
    37 */
    38 
    38 
    39 
    39 
    40 class CDCMOServer : public CServer2
    40 class CDCMOServer : public CServer2,
       
    41                     public MLawmoPluginWipeObserver
    41 	{
    42 	{
    42 	friend class CDCMOSession;
    43 	friend class CDCMOSession;
    43 	friend class CDCMONotifierAob;
    44 	friend class CDCMONotifierAob;
    44 
    45 
    45 public:
    46 public:
    83 	 * Stops the session and closes the server
    84 	 * Stops the session and closes the server
    84 	 * @param None
    85 	 * @param None
    85 	 * @return None
    86 	 * @return None
    86 	 */
    87 	 */
    87 	void DropSession();
    88 	void DropSession();
       
    89 public:
       
    90 	
       
    91 	// Callback from MLawmoPluginWipeObserver
       
    92 	void HandleWipeCompleted(TInt status);
       
    93 	//void SendGenericAlert();
    88 	
    94 	
    89 private:
    95 private:
    90 	/**
    96 	/**
    91 	 * Default constructor
    97 	 * Default constructor
    92 	 */
    98 	 */
   164 	 * Set the iStarter value
   170 	 * Set the iStarter value
   165 	 * @param aValue, ETrue if it is Starter else EFalse
   171 	 * @param aValue, ETrue if it is Starter else EFalse
   166 	 * @return 
   172 	 * @return 
   167 	 */
   173 	 */
   168 	void SetStarter(TBool aValue);	
   174 	void SetStarter(TBool aValue);	
   169 
   175 	
       
   176     TLawMoStatus WipeItem(TInt aValue=0);
       
   177 	
       
   178     TLawMoStatus WipeAllItem();
       
   179 
       
   180 	TLawMoStatus GetListItemL(TDesC& item, TDes& strValue);
       
   181 
       
   182 	TLawMoStatus GetToBeWipedL(TDesC& item, TDes& wipeValue);
       
   183 
       
   184 	TLawMoStatus SetToBeWipedL(TDesC& item, TInt wipeValue);
       
   185 	
   170 private:
   186 private:
   171 	
   187 	
   172 	/**
   188 	/**
   173 	 * Get the uid of plug-in adapter
   189 	 * Get the uid of plug-in adapter
   174 	 * @param aCategory
   190 	 * @param aCategory
   175 	 * @return the uid
   191 	 * @return the uid
   176 	 */
   192 	 */
   177 	TUid GetAdapterUidL(const TDesC& aCategory);
   193 	TUid GetAdapterUidL(const TDesC& aCategory, TBool aIsLawmo = EFalse);
   178 	
   194 	
   179 	/**
   195 	/**
   180 	 * Finds whether the plug-in adapter is a generic category
   196 	 * Finds whether the plug-in adapter is a generic category
   181 	 * @param aCategory
   197 	 * @param aCategory
   182 	 * @return the integer
   198 	 * @return the integer
   183 	 */
   199 	 */
   184 		TInt GetLocalCategoryL(const TDesC& aCategory);	
   200 		TInt GetLocalCategoryL(const TDesC& aCategory);	
   185 	
   201 	
       
   202 	void GetLawmoPluginUidsL();
       
   203 	
       
   204 	void StartDMNetworkMonitorL(TDesC& aServerId, TInt iapid=0);
   186 private:
   205 private:
   187 	RArray<dcmoInfoList> idcmoArray;
   206 	RArray<dcmoInfoList> idcmoArray;
   188 	static TInt iSessionCount;
   207 	static TInt iSessionCount;
   189 	TBool iStarter;	
   208 	TBool iStarter;	
   190 	CDCMONotifierAob* iNotifier;
   209 	CDCMONotifierAob* iNotifier;
       
   210 	RArray<TUid> ilawmoPluginUidToBeWiped;
       
   211 	RArray<CLAWMOPluginInterface*> ilawmoPlugins;
       
   212 	TInt iwipeStatus;
       
   213     TInt iCount;
       
   214     TInt iSessionIap;
   191 	};
   215 	};
   192 	
   216 	
   193 #endif //__DCMO_SERVER_H__
   217 #endif //__DCMO_SERVER_H__