diff -r 000000000000 -r e686773b3f54 phonebookui/Phonebook2/inc/CPbk2PhonebookInfoDlg.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phonebookui/Phonebook2/inc/CPbk2PhonebookInfoDlg.h Tue Feb 02 10:12:17 2010 +0200 @@ -0,0 +1,89 @@ +/* +* Copyright (c) 2005-2007 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: Phonebook 2 info dialog. +* +*/ + + +#ifndef CPBK2PHONEBOOKINFODLG_H +#define CPBK2PHONEBOOKINFODLG_H + +// INCLUDES +#include // CEikDialog + +// FORWARD DECLARATIONS +class CAknPopupList; +class CAknSingleHeadingPopupMenuStyleListBox; +class CVPbkContactManager; +class CVPbkContactStoreUriArray; +class MPbk2StoreInfoUiItem; + +// CLASS DECLARATION + +/** + * Phonebook 2 info dialog. + * Shows memory statuses of different stores. + */ +class CPbk2PhonebookInfoDlg : public CBase + { + public: // Constructors and destructor + + /** + * Creates a new instance of this class. + * + * @return A new instance of this class. + */ + IMPORT_C static CPbk2PhonebookInfoDlg* NewL(); + + /** + * Destructor. + */ + ~CPbk2PhonebookInfoDlg(); + + public: // Interface + + /** + * Executes the info dialog. + * + * @param aStoreUris If the array contains only one store + * a single store information is shown. + * If there are more than one store + * information of all the stores is shown. + */ + IMPORT_C void ExecuteLD( + CVPbkContactStoreUriArray& aStoreUris ); + + private: // Implementation + CPbk2PhonebookInfoDlg(); + void ConstructL(); + void SetTitleL( + CVPbkContactStoreUriArray& aStoreUris ); + void SetDataL( + CVPbkContactManager& aContactManager, + CVPbkContactStoreUriArray& aStoreUris ); + + private: // Data + /// Own: Popup list that is the actual dialog that is shown + CAknPopupList* iPopupList; + /// Own: Listbox that is given to CAknPopupList constructor + CAknSingleHeadingPopupMenuStyleListBox* iListBox; + /// Ref: Keeps track if destructor is already called + TBool* iDestroyed; + /// Own: Info item array + CArrayPtr* iInfoItems; + }; + +#endif // CPBK2PHONEBOOKINFODLG_H + +// End of File