1.1 --- a/epoc32/include/mw/sipregistrationbinding.h Wed Mar 31 12:27:01 2010 +0100
1.2 +++ b/epoc32/include/mw/sipregistrationbinding.h Wed Mar 31 12:33:34 2010 +0100
1.3 @@ -2,9 +2,9 @@
1.4 * Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
1.5 * All rights reserved.
1.6 * This component and the accompanying materials are made available
1.7 -* 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
1.8 +* under the terms of "Eclipse Public License v1.0"
1.9 * which accompanies this distribution, and is available
1.10 -* at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
1.11 +* at the URL "http://www.eclipse.org/legal/epl-v10.html".
1.12 *
1.13 * Initial Contributors:
1.14 * Nokia Corporation - initial contribution.
1.15 @@ -26,7 +26,24 @@
1.16
1.17 // INCLUDES
1.18 #include "sipregistrationcontext.h"
1.19 -#include "_sipcodecdefs.h"
1.20 +
1.21 +//CONSTANTS
1.22 +
1.23 +/** Property to modify the registration behaviour of the SIP stack.
1.24 +* Property value is of type boolean. When the value is set to false,
1.25 +* registration will be attempted without expires value.
1.26 +* Default value for this property is true.
1.27 +*/
1.28 +const TUint32 KSIPSendWithExpires = 200;
1.29 +
1.30 +/** Property to modify the registration behaviour of the SIP stack.
1.31 +* Property value is of type boolean. When the value is set to true,
1.32 +* resolved outbound proxy ip of the registration will be used for all
1.33 +* transactions which uses this registration context(id). The resolved ip is
1.34 +* updated on every successful registration in that context.
1.35 +* Default value for this property is false.
1.36 +*/
1.37 +const TUint32 KSIPCacheOutboundProxyIP = 201;
1.38
1.39 // FORWARD DECLARATIONS
1.40 class CUri8;
1.41 @@ -299,6 +316,15 @@
1.42 * Ownership is not transferred.
1.43 */
1.44 IMPORT_C const CSIPContactHeader* RegisteredContact() const;
1.45 +
1.46 + /**
1.47 + * Sets/resets properties.
1.48 + * @param aProperty. Property name
1.49 + * @param aValue. Property value
1.50 + * @return KErrSIPInvalidRegistrationState if IsContextActive() is ETrue
1.51 + * @return KErrNotFound if property is not found, KErrNone otherwise
1.52 + */
1.53 + IMPORT_C TInt SetProperty(TUint32 aProperty,TBool aValue);
1.54
1.55 public: // New functions, for internal use
1.56 /**
1.57 @@ -307,7 +333,7 @@
1.58 * @return CRegBindingImplementation
1.59 */
1.60 CRegBindingImplementation& Implementation();
1.61 -
1.62 +
1.63 private: // Constructors
1.64 CSIPRegistrationBinding();
1.65
1.66 @@ -318,19 +344,20 @@
1.67 CSIPRouteHeader* aOutboundProxy,
1.68 CUri8* aRemoteUri,
1.69 CSIPFromHeader* aFrom);
1.70 -
1.71 +
1.72 private: // Data
1.73 CRegBindingImplementation* iImplementation;
1.74
1.75 private: // For testing purposes
1.76 -
1.77 - UNIT_TEST(CSIP_Test)
1.78 - UNIT_TEST(CSIPRegistrationBinding_Test)
1.79 - UNIT_TEST(CSIPInviteDialogAssoc_Test)
1.80 - UNIT_TEST(CSIPSubscribeDialogAssoc_Test)
1.81 - UNIT_TEST(CSIPReferDialogAssoc_Test)
1.82 -
1.83 - __DECLARE_TEST;
1.84 +#ifdef CPPUNIT_TEST
1.85 + friend class CSIP_Test;
1.86 + friend class CSIPRegistrationBinding_Test;
1.87 + friend class CSIPInviteDialogAssoc_Test;
1.88 + friend class CSIPSubscribeDialogAssoc_Test;
1.89 + friend class CSIPReferDialogAssoc_Test;
1.90 +#endif
1.91 + void __DbgTestInvariant() const;
1.92 +
1.93 };
1.94
1.95 #endif