dcmofw/dcmoserver/inc/dcmoserver.h
branchRCL_3
changeset 76 3cdbd92ee07b
parent 62 19bba8228ff0
equal deleted inserted replaced
69:a082c848c9a9 76:3cdbd92ee07b
    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 #include <lawmocallbackinterface.h>
    27 
    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 class CLAWMOPluginInterface;
    33 
    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
       
    42 	{
    41 	{
    43 	friend class CDCMOSession;
    42 	friend class CDCMOSession;
    44 	friend class CDCMONotifierAob;
    43 	friend class CDCMONotifierAob;
    45 
    44 
    46 public:
    45 public:
    84 	 * Stops the session and closes the server
    83 	 * Stops the session and closes the server
    85 	 * @param None
    84 	 * @param None
    86 	 * @return None
    85 	 * @return None
    87 	 */
    86 	 */
    88 	void DropSession();
    87 	void DropSession();
    89 public:
       
    90 	
       
    91 	// Callback from MLawmoPluginWipeObserver
       
    92 	void HandleWipeCompleted(TInt status);
       
    93 	//void SendGenericAlert();
       
    94 	
    88 	
    95 private:
    89 private:
    96 	/**
    90 	/**
    97 	 * Default constructor
    91 	 * Default constructor
    98 	 */
    92 	 */
   170 	 * Set the iStarter value
   164 	 * Set the iStarter value
   171 	 * @param aValue, ETrue if it is Starter else EFalse
   165 	 * @param aValue, ETrue if it is Starter else EFalse
   172 	 * @return 
   166 	 * @return 
   173 	 */
   167 	 */
   174 	void SetStarter(TBool aValue);	
   168 	void SetStarter(TBool aValue);	
   175 	
       
   176     TLawMoStatus WipeItem(TInt aValue=0);
       
   177 	
       
   178     TLawMoStatus WipeAllItem();
       
   179 
   169 
   180 	TLawMoStatus GetListItemL(TDesC& item, TDes& strValue);
       
   181 
       
   182 	TLawMoStatus GetToBeWipedL(TDesC& item, TDes& wipeValue);
       
   183 
       
   184 	TLawMoStatus SetToBeWipedL(TDesC& item, TInt wipeValue);
       
   185 	
       
   186 private:
   170 private:
   187 	
   171 	
   188 	/**
   172 	/**
   189 	 * Get the uid of plug-in adapter
   173 	 * Get the uid of plug-in adapter
   190 	 * @param aCategory
   174 	 * @param aCategory
   191 	 * @return the uid
   175 	 * @return the uid
   192 	 */
   176 	 */
   193 	TUid GetAdapterUidL(const TDesC& aCategory, TBool aIsLawmo = EFalse);
   177 	TUid GetAdapterUidL(const TDesC& aCategory);
   194 	
   178 	
   195 	/**
   179 	/**
   196 	 * Finds whether the plug-in adapter is a generic category
   180 	 * Finds whether the plug-in adapter is a generic category
   197 	 * @param aCategory
   181 	 * @param aCategory
   198 	 * @return the integer
   182 	 * @return the integer
   199 	 */
   183 	 */
   200 		TInt GetLocalCategoryL(const TDesC& aCategory);	
   184 		TInt GetLocalCategoryL(const TDesC& aCategory);	
   201 	
   185 	
   202 	void GetLawmoPluginUidsL();
       
   203 	
       
   204 	void StartDMNetworkMonitorL(TDesC& aServerId, TInt iapid=0);
       
   205 private:
   186 private:
   206 	RArray<dcmoInfoList> idcmoArray;
   187 	RArray<dcmoInfoList> idcmoArray;
   207 	static TInt iSessionCount;
   188 	static TInt iSessionCount;
   208 	TBool iStarter;	
   189 	TBool iStarter;	
   209 	CDCMONotifierAob* iNotifier;
   190 	CDCMONotifierAob* iNotifier;
   210 	RArray<TUid> ilawmoPluginUidToBeWiped;
       
   211 	RArray<CLAWMOPluginInterface*> ilawmoPlugins;
       
   212 	TInt iwipeStatus;
       
   213     TInt iCount;
       
   214     TInt iSessionIap;
       
   215 	};
   191 	};
   216 	
   192 	
   217 #endif //__DCMO_SERVER_H__
   193 #endif //__DCMO_SERVER_H__