61
|
1 |
/*
|
|
2 |
* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
|
|
3 |
* All rights reserved.
|
|
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".
|
|
8 |
*
|
|
9 |
* Initial Contributors:
|
|
10 |
* Nokia Corporation - initial contribution.
|
|
11 |
*
|
|
12 |
* Contributors:
|
|
13 |
*
|
|
14 |
* Description: Prompt Dialog implementation
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
#ifndef __CELLULARDATACONFIRMATION_H__
|
|
19 |
#define __CELLULARDATACONFIRMATION_H__
|
|
20 |
|
|
21 |
#include <e32base.h>
|
|
22 |
#include <ConnectionUiUtilities.h>
|
|
23 |
#include <hb/hbcore/hbdevicedialogsymbian.h>
|
|
24 |
#include "ConnectionUiUtilitiesCommon.h"
|
|
25 |
|
|
26 |
class CDeviceDialogObserver;
|
|
27 |
|
|
28 |
|
|
29 |
NONSHARABLE_CLASS ( CCellularDataConfirmation ) : public CBase
|
|
30 |
{
|
|
31 |
public:
|
|
32 |
/**
|
|
33 |
* Two-phased constructor.
|
|
34 |
*/
|
|
35 |
static CCellularDataConfirmation* NewL( );
|
|
36 |
|
|
37 |
/**
|
|
38 |
* Destructor
|
|
39 |
*/
|
|
40 |
~CCellularDataConfirmation();
|
|
41 |
|
|
42 |
/**
|
|
43 |
* Start the Notifier
|
|
44 |
* @param aResult Result of user selection
|
|
45 |
* @param aHomeNetwork Home or foreign network.
|
|
46 |
* @param aStatus Status object of notifier
|
|
47 |
*/
|
|
48 |
void StartL( TMsgQueryLinkedResults& aResult,
|
|
49 |
const TBool aHomeNetwork,
|
|
50 |
TRequestStatus& aStatus );
|
|
51 |
|
|
52 |
/**
|
|
53 |
* Cancel() the notifier
|
|
54 |
* @param -
|
|
55 |
* return -
|
|
56 |
*/
|
|
57 |
void Cancel();
|
|
58 |
|
|
59 |
/**
|
|
60 |
* CompleteL the notifier is complete
|
|
61 |
* @param aStatus status
|
|
62 |
* return -
|
|
63 |
*/
|
|
64 |
void CompleteL( TInt aStatus );
|
|
65 |
/**
|
|
66 |
* Sets the selected choice of the presented dialog
|
|
67 |
* @param aChoice TInt
|
|
68 |
* return -
|
|
69 |
*/
|
|
70 |
void SetSelectedChoice( TInt aChoice );
|
|
71 |
|
|
72 |
private:
|
|
73 |
/**
|
|
74 |
* Constructor
|
|
75 |
*/
|
|
76 |
CCellularDataConfirmation();
|
|
77 |
|
|
78 |
/**
|
|
79 |
* Second-phase constructor
|
|
80 |
*/
|
|
81 |
void ConstructL();
|
|
82 |
|
|
83 |
|
|
84 |
private:
|
|
85 |
/** Pointer to the device dialog interface for handling the dialog */
|
|
86 |
CHbDeviceDialogSymbian* iDialog;
|
|
87 |
/** The observer to handle the data received from the orbit dialog */
|
|
88 |
CDeviceDialogObserver* iObserver;
|
|
89 |
|
|
90 |
/* Information if request was already completed, in case the
|
|
91 |
* observer receives the data signal and the signal about closing the
|
|
92 |
* dialog.
|
|
93 |
*/
|
|
94 |
TBool iCompleted;
|
|
95 |
|
|
96 |
/** Request status. Not owned. */
|
|
97 |
TRequestStatus* iStatus;
|
|
98 |
|
|
99 |
/** Result of query. Not owned. */
|
|
100 |
TMsgQueryLinkedResults* iResult;
|
|
101 |
|
|
102 |
};
|
|
103 |
|
|
104 |
#endif //__CELLULARDATACONFIRMATION_H__
|