cmmanager/cmmgr/cmmserver/inc/cmmconnmethodstruct.h
changeset 53 4af712113915
parent 46 95d45f234cf3
equal deleted inserted replaced
47:cb7afde124a3 53:4af712113915
    73      * Gets the current status of this connection method struct.
    73      * Gets the current status of this connection method struct.
    74      */
    74      */
    75     TCmmConnMethodStatus GetStatus() const;
    75     TCmmConnMethodStatus GetStatus() const;
    76 
    76 
    77     /**
    77     /**
       
    78      * Gets the current record status of this connection method struct.
       
    79      */
       
    80     TCmmRecordStatus GetRecordStatus() const;
       
    81 
       
    82     /**
    78      * Sets a new status value.
    83      * Sets a new status value.
    79      */
    84      */
    80     void SetStatus( const TCmmConnMethodStatus& aStatus );
    85     void SetStatus( const TCmmConnMethodStatus& aStatus );
    81 
    86 
    82     /**
    87     /**
    83      * Refresh the connection method data in this cache side object to be in
    88      * Reload the connection method data in this cache side object to be in
    84      * synch with the database and copy that data back to the session side
    89      * synch with the database(only if needed).
    85      * connection method instance given as parameter.
       
    86      */
    90      */
    87     void RefreshConnMethodInstanceL(
    91     void ReloadPluginDataIfNeededL();
    88             CCmmConnMethodInstance& aConnMethodInstance );
       
    89 
    92 
    90     /**
    93     /**
    91      * Decrease the reference counter by one. Return the remaining number of
    94      * Decrease the reference counter by one. Return the remaining number of
    92      * references.
    95      * references.
    93      */
    96      */
   118      * transaction has completed successfully. Sets the internal state of this
   121      * transaction has completed successfully. Sets the internal state of this
   119      * connection method structure to reflect the new deleted state.
   122      * connection method structure to reflect the new deleted state.
   120      */
   123      */
   121     void DeleteSuccessful( const TUint32 aNewSecondaryId );
   124     void DeleteSuccessful( const TUint32 aNewSecondaryId );
   122 
   125 
       
   126     /**
       
   127      * Notify about a possible change in database on specified record table.
       
   128      */
       
   129     void NotifyRecordChange( const TUint32 aRecordType );
       
   130 
       
   131 private:
       
   132     /**
       
   133      * Set the record status.
       
   134      */
       
   135     void SetRecordStatus( const TCmmRecordStatus aStatus );
       
   136 
   123 private:
   137 private:
   124     // The connection method plugin.
   138     // The connection method plugin.
   125     CCmPluginBaseEng* iConnMethodPlugin; // Owned.
   139     CCmPluginBaseEng* iConnMethodPlugin; // Owned.
   126 
   140 
   127     // Total number of handles that the clients have to this connection method.
   141     // Total number of handles that the clients have to this connection method.
   137     TUint32 iBearerType;
   151     TUint32 iBearerType;
   138 
   152 
   139     // Current status of this connection method.
   153     // Current status of this connection method.
   140     TCmmConnMethodStatus iStatus;
   154     TCmmConnMethodStatus iStatus;
   141 
   155 
   142     //TODO
   156     // Current status of the loaded commsdat records of this connection method.
   143     //TCmmRecordStatus iRecordStatus;
   157     TCmmRecordStatus iRecordStatus;
   144     };
   158     };
   145 
   159 
   146 #endif // CMMCONNMETHODSTRUCT_H_
   160 #endif // CMMCONNMETHODSTRUCT_H_
   147 
   161 
   148 // End of file
   162 // End of file