epoc32/include/mw/siprefresh.h
branchSymbian3
changeset 4 837f303aceeb
parent 3 e1b950c65cb4
equal deleted inserted replaced
3:e1b950c65cb4 4:837f303aceeb
     1 /*
     1 /*
     2 * Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
     2 * Copyright (c) 2005-2009 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 the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
     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.symbianfoundation.org/legal/licencesv10.html".
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     8 *
     8 *
     9 * Initial Contributors:
     9 * Initial Contributors:
    10 * Nokia Corporation - initial contribution.
    10 * Nokia Corporation - initial contribution.
    11 *
    11 *
    12 * Contributors:
    12 * Contributors:
    26 #define CSIPREFRESH_H
    26 #define CSIPREFRESH_H
    27 
    27 
    28 // INCLUDES
    28 // INCLUDES
    29 #include <e32base.h>
    29 #include <e32base.h>
    30 #include <stringpool.h>
    30 #include <stringpool.h>
    31 #include "_sipcodecdefs.h"
       
    32 
    31 
    33 // FORWARD DECLARATIONS
    32 // FORWARD DECLARATIONS
    34 class CSIPClientTransaction;
    33 class CSIPClientTransaction;
    35 class CSIPMessageElements;
    34 class CSIPMessageElements;
    36 class MSIPRefreshAssociation;
    35 class MSIPRefreshAssociation;
   161 
   160 
   162 		/**
   161 		/**
   163 		* Gets current refresh interval
   162 		* Gets current refresh interval
   164 		* @pre State()==CSIPRefresh::EActive
   163 		* @pre State()==CSIPRefresh::EActive
   165 		* @return current refresh interval in seconds
   164 		* @return current refresh interval in seconds
   166 		* @leave KErrSIPInvalidTransactionState if State() is not EActive
       
   167 		* @leave KErrSIPResourceNotAvailable if SIP server can't be contacted
   165 		* @leave KErrSIPResourceNotAvailable if SIP server can't be contacted
   168 		*	because a required resource has been deleted.		
   166 		*	because a required resource has been deleted.		
   169 		*/
   167 		*/
   170 		IMPORT_C TUint IntervalL() const;
   168 		IMPORT_C TUint IntervalL() const;
   171 
   169 
   240 
   238 
   241         //Identifies the request method which is being refreshed
   239         //Identifies the request method which is being refreshed
   242         RStringF iRequestType;
   240         RStringF iRequestType;
   243 
   241 
   244 	private: // For testing purposes
   242 	private: // For testing purposes
   245 
   243 #ifdef CPPUNIT_TEST
   246 	    UNIT_TEST(CSIP_Test)
   244 	    friend class CSIP_Test;
   247         UNIT_TEST(CSIPConnection_Test)
   245         friend class CSIPConnection_Test;
       
   246 #endif
   248 	};
   247 	};
   249 
   248 
   250 #endif
   249 #endif