author | William Roberts <williamr@symbian.org> |
Wed, 31 Mar 2010 12:33:34 +0100 | |
branch | Symbian3 |
changeset 4 | 837f303aceeb |
permissions | -rw-r--r-- |
williamr@4 | 1 |
/* |
williamr@4 | 2 |
* Copyright (c) 2002-2007 Nokia Corporation and/or its subsidiary(-ies). |
williamr@4 | 3 |
* All rights reserved. |
williamr@4 | 4 |
* This component and the accompanying materials are made available |
williamr@4 | 5 |
* under the terms of "Eclipse Public License v1.0" |
williamr@4 | 6 |
* which accompanies this distribution, and is available |
williamr@4 | 7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html". |
williamr@4 | 8 |
* |
williamr@4 | 9 |
* Initial Contributors: |
williamr@4 | 10 |
* Nokia Corporation - initial contribution. |
williamr@4 | 11 |
* |
williamr@4 | 12 |
* Contributors: |
williamr@4 | 13 |
* |
williamr@4 | 14 |
* Description: Callback interface for co-branding interface. |
williamr@4 | 15 |
* |
williamr@4 | 16 |
*/ |
williamr@4 | 17 |
|
williamr@4 | 18 |
|
williamr@4 | 19 |
|
williamr@4 | 20 |
|
williamr@4 | 21 |
#ifndef M_SEN_COBRANDING_INTERFACE_H |
williamr@4 | 22 |
#define M_SEN_COBRANDING_INTERFACE_H |
williamr@4 | 23 |
|
williamr@4 | 24 |
// CLASS DECLARATION |
williamr@4 | 25 |
/** |
williamr@4 | 26 |
* Callback interface for co-branding. |
williamr@4 | 27 |
* Note: UID for this interface is KSenInterfaceUidCoBrandingObserver. |
williamr@4 | 28 |
* |
williamr@4 | 29 |
* Application that wishes to enable billing also needs to enable |
williamr@4 | 30 |
* following properties of client policy by calling |
williamr@4 | 31 |
* CSenXmlServiceDescription::SetPolicy( const TDesC8& aName, const TDesC8& aValue ): |
williamr@4 | 32 |
* |
williamr@4 | 33 |
* - Application Info [ <AppInfo/>, KSenLocalnameAppInfo ] |
williamr@4 | 34 |
* - WAP gateway address [ <WAPGW"/>, KSenLocalnameWAPGW ] |
williamr@4 | 35 |
* - MWS namespace [ <MwsNamespace/>, KSenLocalnameMwsNamespace ] |
williamr@4 | 36 |
* |
williamr@4 | 37 |
* If application does not provide WAP GW address as part of client policy, |
williamr@4 | 38 |
* it signalizes that application wants to skip communication with WAP GW |
williamr@4 | 39 |
* and talk directly with billing gateway instead. Typically, this depends |
williamr@4 | 40 |
* on operator spesific environment. |
williamr@4 | 41 |
*/ |
williamr@4 | 42 |
class MSenCoBrandingObserver |
williamr@4 | 43 |
{ |
williamr@4 | 44 |
public: |
williamr@4 | 45 |
/** |
williamr@4 | 46 |
* This method is called when list of co-branding IDs is receieved during authentication. |
williamr@4 | 47 |
* @param aBrandIdListAsXmlSnippet is the list of brand IDs in form of XML snippet |
williamr@4 | 48 |
* @param aSelectedBrandId is supposed to point to the brand ID selected by the application |
williamr@4 | 49 |
* when this callback returns. |
williamr@4 | 50 |
* @return TBool indicates whether or not the application wants to proceed (enable) |
williamr@4 | 51 |
* the use of billing ecosystem or stop the whole progress. |
williamr@4 | 52 |
*/ |
williamr@4 | 53 |
virtual TBool OnGetBrandIdL( const TDesC8& aBrandIdListAsXmlSnippet, RBuf8& aSelectedBrandId) = 0; |
williamr@4 | 54 |
}; |
williamr@4 | 55 |
#endif // M_SEN_COBRANDING_INTERFACE_H |
williamr@4 | 56 |
|
williamr@4 | 57 |
// End of File |