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-2008 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: In case that Service Consumer (owner of SC instance) needs |
williamr@4 | 15 |
* some special, even properietary interface, it can request |
williamr@4 | 16 |
* an implementation of such interface by calling |
williamr@4 | 17 |
* CSenServiceConnection::InterfaceByUid(UID) and acquire |
williamr@4 | 18 |
* on of the M-class interfaces defined in this file. |
williamr@4 | 19 |
* |
williamr@4 | 20 |
*/ |
williamr@4 | 21 |
|
williamr@4 | 22 |
|
williamr@4 | 23 |
|
williamr@4 | 24 |
|
williamr@4 | 25 |
#ifndef M_SEN_SERVICE_CONNNECTION_INTERFACES_H |
williamr@4 | 26 |
#define M_SEN_SERVICE_CONNNECTION_INTERFACES_H |
williamr@4 | 27 |
|
williamr@4 | 28 |
// CONST |
williamr@4 | 29 |
// UIDs for the supported, new *service connection interfaces*: |
williamr@4 | 30 |
const TUid KSenInterfaceUidAlrServiceConnection = { 0xE760F699 }; // MSenAlrServiceConnection |
williamr@4 | 31 |
|
williamr@4 | 32 |
|
williamr@4 | 33 |
// CLASS DECLARATION |
williamr@4 | 34 |
/** |
williamr@4 | 35 |
* Callback interface for service consumers |
williamr@4 | 36 |
*/ |
williamr@4 | 37 |
|
williamr@4 | 38 |
class MSenAlrServiceConnection |
williamr@4 | 39 |
{ |
williamr@4 | 40 |
public: |
williamr@4 | 41 |
/** |
williamr@4 | 42 |
* With this method client can indicate that it wants to start using a new preferred |
williamr@4 | 43 |
* connection as a response to PreferredCarrierAvailable() callback. |
williamr@4 | 44 |
* |
williamr@4 | 45 |
* @param aUserChoice TRUE(Yes) FALSE (No) |
williamr@4 | 46 |
* if UserChoice is TRUE then connection will migrated to new carrier |
williamr@4 | 47 |
* available, |
williamr@4 | 48 |
* if UserChoice is FALSE connection will not migrate to new carrier |
williamr@4 | 49 |
*/ |
williamr@4 | 50 |
virtual void MigrateToPrefferedCarrierL(TBool &aUserChoice) = 0 ; |
williamr@4 | 51 |
|
williamr@4 | 52 |
/** |
williamr@4 | 53 |
* With this method client can indicate that it accepts to use a new preferred |
williamr@4 | 54 |
* connection as a response to NewCarrierActive() callback. |
williamr@4 | 55 |
* |
williamr@4 | 56 |
* Earlier the client has received MigrateToPrefferedCarrierL() |
williamr@4 | 57 |
* callback. Once it has agreed to migrate through NewCarrierAvailable(), |
williamr@4 | 58 |
* newCarrierActive() callback will be invoked in order |
williamr@4 | 59 |
* to get acceptance from the application. |
williamr@4 | 60 |
* |
williamr@4 | 61 |
* @param aUserChoice TRUE(Yes) FALSE (No) |
williamr@4 | 62 |
* if UserChoice is TRUE then new Carrier will be accepted |
williamr@4 | 63 |
* if UserChoice is FALSE connection will not accept the new carrier |
williamr@4 | 64 |
*/ |
williamr@4 | 65 |
virtual void NewCarrierAcceptedL(TBool &aUserChoice) = 0 ; |
williamr@4 | 66 |
}; |
williamr@4 | 67 |
|
williamr@4 | 68 |
#endif // M_SEN_SERVICE_CONNNECTION_INTERFACES_H |