diff -r a3a1ae9acec6 -r da5135c61bad emailcontacts/remotecontactlookup/engine/inc/cpbkxrclsettingitem.h --- a/emailcontacts/remotecontactlookup/engine/inc/cpbkxrclsettingitem.h Mon Mar 15 12:39:10 2010 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,119 +0,0 @@ -/* -* Copyright (c) 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: Definition of the class CPbkxRclResultI -* -*/ - - -#ifndef CPBKXRCLSETTINGITEM_H -#define CPBKXRCLSETTINGITEM_H - -#include - -class CPbkxRemoteContactLookupProtocolAccount; - -/** -* Class for showing RCL account selection setting item. -* -* Selected value is written to central repository. -*/ -class CPbkxRclSettingItem : public CAknEnumeratedTextPopupSettingItem - { -public: // constructor and destructor - - /** - * Creates new setting item. - * - * @return New setting item. - */ - static CPbkxRclSettingItem* NewL(); - - /** - * Creates new setting item. - * - * Created item is left on cleanup stack. - * - * @return New setting item. - */ - static CPbkxRclSettingItem* NewLC(); - - /** - * Destructor. - */ - virtual ~CPbkxRclSettingItem(); - -public: // virtual methods from base class - - /** - * @see CAknEnumeratedTextPopupSettingItem - */ - virtual void EditItemL( TBool aCalledFromMenu ); - -private: // methods used internally - - /** - * Creates all protocol adapters and asks all protocol accounts from - * each. - */ - void LoadProtocolAccountsL(); - - /** - * Initializes text arrays which are shown to the user. - */ - void FillTextArraysL(); - - /** - * Reads account information from central repository and sets the correct - * account as selected. - */ - void SetSelectedAccountL(); - - /** - * Stores selected account information to central repository. - */ - void StoreSettingL(); - -private: // constructors - - /** - * Constructor. - */ - CPbkxRclSettingItem(); - - /** - * Second-phase constructor. - */ - void ConstructL(); - -private: // data - - // Selected item index. - TInt iSelectedItem; - - // Enumeration texts. Not owned. - CArrayPtr* iEnumTexts; - - // Popped up texts. Not owned. - CArrayPtr* iPoppedUpTexts; - - // Protocol accounts. Owned. - RPointerArray iProtocolAccounts; - - // Offset to resource file. - TInt iResourceFileOffset; - - }; - -#endif -