watchdog/inc/cwdmonitor.h
changeset 23 d4d56f5e7c55
parent 16 2729d20a0010
equal deleted inserted replaced
20:556534771396 23:d4d56f5e7c55
    24 #include "mcentrephandler.h"
    24 #include "mcentrephandler.h"
    25 
    25 
    26 //Forward declaration
    26 //Forward declaration
    27 class CWDTimer;
    27 class CWDTimer;
    28 class CentrepMonitor;
    28 class CentrepMonitor;
       
    29 class CServerMonitor;
    29 
    30 
    30 class CWDMonitor : public CBase , public MWDTimerHandler, public MCentrepHandler
    31 class CWDMonitor : public CBase , public MWDTimerHandler, public MCentrepHandler
    31     {
    32     {
    32 public:
    33 public:
    33     /*
    34     /*
    55     void HandleWDTimerL();
    56     void HandleWDTimerL();
    56     
    57     
    57     //From MCentrepHandler
    58     //From MCentrepHandler
    58     void HandlecentrepL( TUint32 aKey );
    59     void HandlecentrepL( TUint32 aKey );
    59     
    60     
    60 private:
    61 private:    
    61     /*
       
    62      * @description Starts the specified server.
       
    63      * @param TDesC& aServerName Name of the server to start
       
    64      * @param TUid aServerUid uid of the server to start
       
    65      * @param TDesC& aSemaphoreName Name of the semaphore
       
    66      * @return KErrNone on succesful operation.
       
    67      */
       
    68     TInt StartServer( const TDesC& aServerName , TUid aServerUid ,
       
    69                       const TDesC& aSemaphoreName);
       
    70     
       
    71     /*
       
    72      * @description creates the specified server process.
       
    73      * @param TDesC& aServerName Name of the server to start
       
    74      * @param TUid aServerUid uid of the server to start
       
    75      * @return KErrNone on succesful operation.
       
    76      */
       
    77     TInt CreateServerProcess( const TDesC& aServerName , TUid aServerUid  );
       
    78     /*
    62     /*
    79      * Constructor
    63      * Constructor
    80      */
    64      */
    81     CWDMonitor();
    65     CWDMonitor();
    82     /*
    66     /*
    92     TBool iAllowSS;
    76     TBool iAllowSS;
    93     TUid iHSUid;
    77     TUid iHSUid;
    94     TUid iSSUid;
    78     TUid iSSUid;
    95     HBufC* iHSName;
    79     HBufC* iHSName;
    96     HBufC* iSSName;
    80     HBufC* iSSName;
    97     
    81     /* Monitor to watch the centrep values of Harvester server status.owned*/
    98     CentrepMonitor* aHSMonitor;
    82     CentrepMonitor* aHSStatusMonitor;
    99     CentrepMonitor* aSSMonitor;
    83     /* Monitor to watch the centrep values of Search server status.owned*/
       
    84     CentrepMonitor* aSSStatusMonitor;
       
    85     /* Monitor to watch the centrep values of Harvester server Uid.owned*/
       
    86     CentrepMonitor* aHSUidMonitor;
       
    87     /* Monitor to watch the centrep values of Search server Uid.owned*/
       
    88     CentrepMonitor* aSSUidMonitor;
       
    89     /* Monitor to watch the centrep values of Harvester server Name.owned*/
       
    90     CentrepMonitor* aHSNameMonitor;
       
    91     /* Monitor to watch the centrep values of Search server Name.owned*/
       
    92     CentrepMonitor* aSSNameMonitor;
       
    93     /* Monitor to watch the existance of the Harvester server.owned*/
       
    94     CServerMonitor* iHarvesterMonitor;
       
    95     /* Monitor to watch the existance of the Search server.owned*/
       
    96     CServerMonitor* iSearchMonitor;
   100     };
    97     };
   101 
    98 
   102 #endif /* CWDMONITOR_H */
    99 #endif /* CWDMONITOR_H */