filemanager/App/inc/CFileManagerSettingListContainer.h
changeset 0 6a9f87576119
child 42 f5c50b8af68c
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/filemanager/App/inc/CFileManagerSettingListContainer.h	Mon Jan 18 20:09:41 2010 +0200
@@ -0,0 +1,88 @@
+/*
+* Copyright (c) 2006 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:  Setting list container in file manager
+*
+*/
+
+
+
+#ifndef CFILEMANAGERSETTINGLISTCONTAINER_H
+#define CFILEMANAGERSETTINGLISTCONTAINER_H
+
+//  INCLUDES
+#include "CFileManagerContainerBase.h"
+
+
+// CLASS DECLARATION
+/**
+ * Container for backup view.
+ */
+class CFileManagerSettingListContainer : public CFileManagerContainerBase
+    {
+    public:  // Constructors and destructor
+        enum TListType
+            {
+            EListBackup = 0, // Backup settings layout
+            EListRestore // Restore selection layout
+            };
+
+        /**
+         * Two-phased constructor.
+         */
+        static CFileManagerSettingListContainer* NewL(
+            const TRect& aRect,
+            const TInt aFocusedIndex,
+            const TListType aType,
+            MDesCArray* aArray,
+            const TDesC& aHelpContext = KNullDesC );
+
+        /**
+         * Destructor.
+         */
+        ~CFileManagerSettingListContainer();
+
+    private: // From CFileManagerContainerBase
+        CEikTextListBox* CreateListBoxL();
+
+        TKeyResponse OfferKeyEventL(
+            const TKeyEvent& aKeyEvent, TEventCode aType );
+
+        void HandleControlEventL(
+            CCoeControl* aControl, TCoeEvent aEventType );
+
+    private:
+        /**
+        * C++ default constructor.
+        */
+        CFileManagerSettingListContainer( const TListType aType );
+
+        void ConstructL(
+            const TRect& aRect,
+            const TInt aFocusedIndex,
+            MDesCArray* aArray,
+            const TDesC& aHelpContext );
+
+        CEikTextListBox* CreateBackupListBoxL();
+
+        CEikTextListBox* CreateRestoreListBoxL();
+
+    private: // Data
+        // Setting list type
+        TListType iType;
+
+    };
+
+#endif      // CFILEMANAGERSETTINGLISTCONTAINER_H
+            
+// End of File