2 * Copyright (c) 2002-2007 Nokia Corporation and/or its subsidiary(-ies).
4 * This component and the accompanying materials are made available
5 * under the terms of "Eclipse Public License v1.0"
6 * which accompanies this distribution, and is available
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
14 * Description: Callback interface for co-branding interface.
21 #ifndef M_SEN_COBRANDING_INTERFACE_H
22 #define M_SEN_COBRANDING_INTERFACE_H
26 * Callback interface for co-branding.
27 * Note: UID for this interface is KSenInterfaceUidCoBrandingObserver.
29 * Application that wishes to enable billing also needs to enable
30 * following properties of client policy by calling
31 * CSenXmlServiceDescription::SetPolicy( const TDesC8& aName, const TDesC8& aValue ):
33 * - Application Info [ <AppInfo/>, KSenLocalnameAppInfo ]
34 * - WAP gateway address [ <WAPGW"/>, KSenLocalnameWAPGW ]
35 * - MWS namespace [ <MwsNamespace/>, KSenLocalnameMwsNamespace ]
37 * If application does not provide WAP GW address as part of client policy,
38 * it signalizes that application wants to skip communication with WAP GW
39 * and talk directly with billing gateway instead. Typically, this depends
40 * on operator spesific environment.
42 class MSenCoBrandingObserver
46 * This method is called when list of co-branding IDs is receieved during authentication.
47 * @param aBrandIdListAsXmlSnippet is the list of brand IDs in form of XML snippet
48 * @param aSelectedBrandId is supposed to point to the brand ID selected by the application
49 * when this callback returns.
50 * @return TBool indicates whether or not the application wants to proceed (enable)
51 * the use of billing ecosystem or stop the whole progress.
53 virtual TBool OnGetBrandIdL( const TDesC8& aBrandIdListAsXmlSnippet, RBuf8& aSelectedBrandId) = 0;
55 #endif // M_SEN_COBRANDING_INTERFACE_H