simpleengine/siputils/inc/simplesipconnection.h
branchRCL_3
changeset 34 2669f8761a99
parent 0 c8caa15ef882
child 35 fbd2e7cec7ef
equal deleted inserted replaced
31:2580314736af 34:2669f8761a99
     1 /*
     1 /*
     2 * Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
     2 * Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     4 * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     5 * under the terms of "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
   118 	 */
   118 	 */
   119     IMPORT_C MSimpleEngineRequest::TSimpleSipSubscriptionState SipSubscriptionState( 
   119     IMPORT_C MSimpleEngineRequest::TSimpleSipSubscriptionState SipSubscriptionState( 
   120         MSimpleEngineRequest& aReq );	   
   120         MSimpleEngineRequest& aReq );	   
   121     
   121     
   122     /**
   122     /**
   123      * Set service id
       
   124      * @param aServiceId new service id 
       
   125      */
       
   126     IMPORT_C void SetServiceId( TInt32 aServiceId );
       
   127     
       
   128     /**
       
   129      * Search the corresponding client request
   123      * Search the corresponding client request
   130      *
   124      *
   131      * @since S60 v3.2      
   125      * @since S60 v3.2      
   132      * @param aTrans SIP transaction
   126      * @param aTrans SIP transaction
   133      * @return request or NULL if request not found
   127      * @return request or NULL if request not found
   245      * @param aContent message content
   239      * @param aContent message content
   246      * @return error code
   240      * @return error code
   247      */
   241      */
   248     TInt HandleReceivedMessage( const TDesC8& aFrom,
   242     TInt HandleReceivedMessage( const TDesC8& aFrom,
   249         const TDesC8& aContent );
   243         const TDesC8& aContent );
   250     
       
   251     /**
       
   252      * Connection method has changed (Roaming). 
       
   253      * 
       
   254      * @since S60 3.2.3
       
   255      */
       
   256     void ConnectionChanged();  
       
   257 
   244 
   258 protected:
   245 protected:
   259 
   246 
   260     /**
   247     /**
   261      * C++ default constructor.
   248      * C++ default constructor.
   371      * Delete all pending client requests
   358      * Delete all pending client requests
   372      *
   359      *
   373      * @since S60 v3.2       
   360      * @since S60 v3.2       
   374      */
   361      */
   375     void DeleteRequests();
   362     void DeleteRequests();
   376     
   363 
   377     /**
       
   378      * Delete all pending specified type of requests.
       
   379      *
       
   380      * @since S60 5.0 
       
   381      * @param aRequestType request type
       
   382      */
       
   383     void DeleteRequests( CSimpleRequest::TSimpleSipReqType aRequestType );
       
   384     
       
   385     /**
   364     /**
   386      * Destroy the request
   365      * Destroy the request
   387      *
   366      *
   388      * @since S60 v3.2       
   367      * @since S60 v3.2       
   389      * @param aReq request
   368      * @param aReq request
   578      * @param aRequest SIMPLE request
   557      * @param aRequest SIMPLE request
   579      * @return error code
   558      * @return error code
   580      */
   559      */
   581     void DoHandleReceivedMessageL( const TDesC8& aFrom,
   560     void DoHandleReceivedMessageL( const TDesC8& aFrom,
   582         const TDesC8& aContent, CSimpleRequest& aRequest );
   561         const TDesC8& aContent, CSimpleRequest& aRequest );
   583     
       
   584     /**
       
   585      * Stores ETag to vimpstsettingstore
       
   586      *
       
   587      * @since S60 5.0       
       
   588      */
       
   589     void StoreETagL( HBufC8& aTag );
       
   590 
   562 
   591 private:    // Data
   563 private:    // Data
   592 
   564 
   593     /**
   565     /**
   594      * SIP Engine connection
   566      * SIP Engine connection
   637 
   609 
   638     /**
   610     /**
   639      * Current number of subscriptions
   611      * Current number of subscriptions
   640      */
   612      */
   641     TUint iCurrentNbrSubs;
   613     TUint iCurrentNbrSubs;
   642     
       
   643     /**
       
   644      * Service id of current service
       
   645      */
       
   646     TInt32 iServiceId;
       
   647 
   614 
   648 #ifdef _DEBUG
   615 #ifdef _DEBUG
   649     friend class T_CSimpleSipConnection;
   616     friend class T_CSimpleSipConnection;
   650 #endif
   617 #endif
   651     };
   618     };