cmmanager/cmmgr/cmmserver/inc/cmmconnmethodinstance.h
changeset 40 c5b848e6c7d1
parent 30 8dde790cab74
child 44 a0c4ceac30d0
equal deleted inserted replaced
34:3b0cec605979 40:c5b848e6c7d1
    74     TUint32 GetId() const;
    74     TUint32 GetId() const;
    75 
    75 
    76     /**
    76     /**
    77      * Set connection method ID.
    77      * Set connection method ID.
    78      */
    78      */
    79     void SetId( const TUint32& aConnMethodId );
    79     void SetId( const TUint32 aConnMethodId );
    80 
    80 
    81     /**
    81     /**
    82      * Return bearer type.
    82      * Return bearer type.
    83      */
    83      */
    84     TUint32 GetBearerType() const;
    84     TUint32 GetBearerType() const;
    89     TInt GetHandle() const;
    89     TInt GetHandle() const;
    90 
    90 
    91     /**
    91     /**
    92      * Set handle ID.
    92      * Set handle ID.
    93      */
    93      */
    94     void SetHandle( const TInt& aHandle );
    94     void SetHandle( const TInt aHandle );
    95 
    95 
    96     /**
    96     /**
    97      * Get pointer to the plugin data container.
    97      * Get pointer to the plugin data container.
    98      */
    98      */
    99     CCmClientPluginInstance* GetPluginDataInstance() const;
    99     CCmClientPluginInstance* GetPluginDataInstance() const;
   120      * are handled in this module and the rest in plugin.
   120      * are handled in this module and the rest in plugin.
   121      * @param aAttribute Parameter which specifies the requested attribute.
   121      * @param aAttribute Parameter which specifies the requested attribute.
   122      * @return Returns the value of the requested attribute if succees. Otherwise
   122      * @return Returns the value of the requested attribute if succees. Otherwise
   123      * leaves with KErrArgument
   123      * leaves with KErrArgument
   124      */
   124      */
   125     TUint32 GetIntAttributeL( const TUint32& aAttribute );
   125     TUint32 GetIntAttributeL( const TUint32 aAttribute );
   126 
   126 
   127     /**
   127     /**
   128      * Returns integer value identified by aAttribute. Some special cases
   128      * Returns integer value identified by aAttribute. Some special cases
   129      * are handled in this module and the rest in plugin.
   129      * are handled in this module and the rest in plugin.
   130      * @param aAttribute Parameter which specifies the requested attribute.
   130      * @param aAttribute Parameter which specifies the requested attribute.
   131      * @return Returns the value of the requested attribute if succees. Otherwise
   131      * @return Returns the value of the requested attribute if succees. Otherwise
   132      * leaves with KErrArgument
   132      * leaves with KErrArgument
   133      */
   133      */
   134     TBool GetBoolAttributeL( const TUint32& aAttribute );
   134     TBool GetBoolAttributeL( const TUint32 aAttribute );
   135 
   135 
   136     /**
   136     /**
   137      * Returns 16 bit string value identified by aAttribute.
   137      * Returns 16 bit string value identified by aAttribute.
   138      * @param aAttribute Parameter which specifies the requested attribute.
   138      * @param aAttribute Parameter which specifies the requested attribute.
   139      * @return Returns the value of the requested attribute if succees. Otherwise
   139      * @return Returns the value of the requested attribute if succees. Otherwise
   140      * leaves with KErrArgument
   140      * leaves with KErrArgument
   141      */
   141      */
   142     HBufC* GetStringAttributeL( const TUint32& aAttribute );
   142     HBufC* GetStringAttributeL( const TUint32 aAttribute );
   143 
   143 
   144     /**
   144     /**
   145      * Returns 8 bit string value identified by aAttribute.
   145      * Returns 8 bit string value identified by aAttribute.
   146      * @param aAttribute Parameter which specifies the requested attribute.
   146      * @param aAttribute Parameter which specifies the requested attribute.
   147      * @return Returns the value of the requested attribute if succees. Otherwise
   147      * @return Returns the value of the requested attribute if succees. Otherwise
   148      * leaves with KErrArgument
   148      * leaves with KErrArgument
   149      */
   149      */
   150     HBufC8* GetString8AttributeL( const TUint32& aAttribute );
   150     HBufC8* GetString8AttributeL( const TUint32 aAttribute );
   151 
   151 
   152     /**
   152     /**
   153      * Sets the integer value identified by aAttribute.
   153      * Sets the integer value identified by aAttribute.
   154      * @param aAttribute Identifies the attribute to be set.
   154      * @param aAttribute Identifies the attribute to be set.
   155      * @param aValue The value to be set.
   155      * @param aValue The value to be set.
   156      * @return None
   156      * @return None
   157      */
   157      */
   158     void SetIntAttributeL(
   158     void SetIntAttributeL(
   159             const TUint32& aAttribute,
   159             const TUint32 aAttribute,
   160             const TUint32& aValue );
   160             const TUint32 aValue );
   161 
   161 
   162     /**
   162     /**
   163      * Sets the integer value identified by aAttribute.
   163      * Sets the integer value identified by aAttribute.
   164      * @param aAttribute Identifies the attribute to be set.
   164      * @param aAttribute Identifies the attribute to be set.
   165      * @param aValue The value to be set.
   165      * @param aValue The value to be set.
   166      * @return None
   166      * @return None
   167      */
   167      */
   168     void SetBoolAttributeL(
   168     void SetBoolAttributeL(
   169             const TUint32& aAttribute,
   169             const TUint32 aAttribute,
   170             const TBool& aValue );
   170             const TBool aValue );
   171 
   171 
   172     /**
   172     /**
   173      * Sets the 16 bit string value identified by aAttribute.
   173      * Sets the 16 bit string value identified by aAttribute.
   174      * @param aAttribute Identifies the attribute to be set.
   174      * @param aAttribute Identifies the attribute to be set.
   175      * @param aValue The value to be set.
   175      * @param aValue The value to be set.
   176      * @return None
   176      * @return None
   177      */
   177      */
   178     void SetStringAttributeL(
   178     void SetStringAttributeL(
   179             const TUint32& aAttribute,
   179             const TUint32 aAttribute,
   180             const TDesC16& aValue );
   180             const TDesC16& aValue );
   181 
   181 
   182     /**
   182     /**
   183      * Sets the 8 bit string value identified by aAttribute.
   183      * Sets the 8 bit string value identified by aAttribute.
   184      * @param aAttribute Identifies the attribute to be set.
   184      * @param aAttribute Identifies the attribute to be set.
   185      * @param aValue The value to be set.
   185      * @param aValue The value to be set.
   186      * @return None
   186      * @return None
   187      */
   187      */
   188     void SetString8AttributeL(
   188     void SetString8AttributeL(
   189             const TUint32& aAttribute,
   189             const TUint32 aAttribute,
   190             const TDesC8& aValue );
   190             const TDesC8& aValue );
   191 
   191 
   192     /**
   192     /**
   193      * Sets a new status value.
   193      * Sets a new status value.
   194      */
   194      */
   204     /**
   204     /**
   205      * Called after this connection method has been deleted and database
   205      * Called after this connection method has been deleted and database
   206      * transaction has completed successfully. Sets the internal state of this
   206      * transaction has completed successfully. Sets the internal state of this
   207      * connection method structure to reflect the new deleted state.
   207      * connection method structure to reflect the new deleted state.
   208      */
   208      */
   209     void DeleteSuccessful( const TUint32& aNewSecondaryId );
   209     void DeleteSuccessful( const TUint32 aNewSecondaryId );
   210 
   210 
   211     /**
   211     /**
   212      * After update/delete to database, refresh temporary ID to real ID if
   212      * After update/delete to database, refresh temporary ID to real ID if
   213      * necessary and refresh status information for any related handles for
   213      * necessary and refresh status information for any related handles for
   214      * all client sessions.
   214      * all client sessions.
   217 
   217 
   218     /**
   218     /**
   219      * Removes a connection method from any open destination handle in the same
   219      * Removes a connection method from any open destination handle in the same
   220      * session.
   220      * session.
   221      */
   221      */
   222     void RemoveConnMethodFromSessionDestinationHandles( const TUint32& aConnMethodId );
   222     void RemoveConnMethodFromSessionDestinationHandles( const TUint32 aConnMethodId );
   223 
   223 
   224 private:
   224 private:
   225     // Session that owns this instance.
   225     // Session that owns this instance.
   226     CCmmSession* iCmmSession; // Not owned.
   226     CCmmSession* iCmmSession; // Not owned.
   227 
   227