63
|
1 |
/*
|
|
2 |
* Copyright (c) 2005-2007 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: Phonebook 2 info dialog.
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
|
|
19 |
#ifndef CPBK2PHONEBOOKINFODLG_H
|
|
20 |
#define CPBK2PHONEBOOKINFODLG_H
|
|
21 |
|
|
22 |
// INCLUDES
|
|
23 |
#include <eikdialg.h> // CEikDialog
|
|
24 |
|
|
25 |
// FORWARD DECLARATIONS
|
|
26 |
class CAknPopupList;
|
|
27 |
class CAknSinglePopupMenuStyleListBox;
|
|
28 |
class CVPbkContactManager;
|
|
29 |
class CVPbkContactStoreUriArray;
|
|
30 |
class MPbk2StoreInfoUiItem;
|
|
31 |
|
|
32 |
// CLASS DECLARATION
|
|
33 |
|
|
34 |
/**
|
|
35 |
* Phonebook 2 info dialog.
|
|
36 |
* Shows memory statuses of different stores.
|
|
37 |
*/
|
|
38 |
class CPbk2PhonebookInfoDlg : public CBase
|
|
39 |
{
|
|
40 |
public: // Constructors and destructor
|
|
41 |
|
|
42 |
/**
|
|
43 |
* Creates a new instance of this class.
|
|
44 |
*
|
|
45 |
* @return A new instance of this class.
|
|
46 |
*/
|
|
47 |
IMPORT_C static CPbk2PhonebookInfoDlg* NewL();
|
|
48 |
|
|
49 |
/**
|
|
50 |
* Destructor.
|
|
51 |
*/
|
|
52 |
~CPbk2PhonebookInfoDlg();
|
|
53 |
|
|
54 |
public: // Interface
|
|
55 |
|
|
56 |
/**
|
|
57 |
* Executes the info dialog.
|
|
58 |
*
|
|
59 |
* @param aStoreUris If the array contains only one store
|
|
60 |
* a single store information is shown.
|
|
61 |
* If there are more than one store
|
|
62 |
* information of all the stores is shown.
|
|
63 |
*/
|
|
64 |
IMPORT_C void ExecuteLD(
|
|
65 |
CVPbkContactStoreUriArray& aStoreUris );
|
|
66 |
|
|
67 |
private: // Implementation
|
|
68 |
CPbk2PhonebookInfoDlg();
|
|
69 |
void ConstructL();
|
|
70 |
void SetTitleL(
|
|
71 |
CVPbkContactStoreUriArray& aStoreUris );
|
|
72 |
void SetDataL(
|
|
73 |
CVPbkContactManager& aContactManager,
|
|
74 |
CVPbkContactStoreUriArray& aStoreUris );
|
|
75 |
|
|
76 |
private: // Data
|
|
77 |
/// Own: Popup list that is the actual dialog that is shown
|
|
78 |
CAknPopupList* iPopupList;
|
|
79 |
/// Own: Listbox that is given to CAknPopupList constructor
|
|
80 |
CAknSinglePopupMenuStyleListBox* iListBox;
|
|
81 |
/// Ref: Keeps track if destructor is already called
|
|
82 |
TBool* iDestroyed;
|
|
83 |
/// Own: Info item array
|
|
84 |
CArrayPtr<MPbk2StoreInfoUiItem>* iInfoItems;
|
|
85 |
};
|
|
86 |
|
|
87 |
#endif // CPBK2PHONEBOOKINFODLG_H
|
|
88 |
|
|
89 |
// End of File
|