DirectPrint/DirectPrintApp/ui/inc/directprintsettinglistbox.h
changeset 19 2275db202402
parent 11 613a5ff70823
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/DirectPrint/DirectPrintApp/ui/inc/directprintsettinglistbox.h	Tue May 11 14:10:02 2010 +0800
@@ -0,0 +1,70 @@
+/*
+* Copyright (c) 2010 Kanrikogaku Kenkyusho, Ltd.
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of the License "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:
+* Kanrikogaku Kenkyusho, Ltd. - Initial contribution
+*
+* Contributors:
+*
+* Description:
+* {Description of the file}
+*
+*/
+
+// Protection against nested includes
+#ifndef __DIRECTPRINTSETTINGLISTBOX_H__
+#define __DIRECTPRINTSETTINGLISTBOX_H__
+
+// System includes
+#include <aknsettingitemlist.h>
+
+// User includes
+#include "directprintsettinglistobserver.h"
+
+// Class declaration
+/**
+ *  Setting listbox class
+ *  more_complete_description
+ */
+class CDirectPrintSettingListBox : public CAknSettingItemList
+	{
+public:
+	/** Constructors */
+	static CDirectPrintSettingListBox* NewL(const TRect& aRect);
+	static CDirectPrintSettingListBox* NewLC(const TRect& aRect);
+	/** Destructor */
+	virtual ~CDirectPrintSettingListBox();
+
+public: // from CAknSettingItemList
+//	CAknSettingItem* CreateSettingItemL(TInt identifier);
+	/**
+	 * Set focus.
+	 *
+	 * @param aIndex The index of listbox item
+	 * @param aCalledFromMenu The flag of called from menu
+	 */
+	void EditItemL(TInt aIndex, TBool aCalledFromMenu);
+
+public: // New function
+	/**
+	 * Set list observer.
+	 *
+	 * @param aObserver Pointer to list observer.
+	 */
+	void SetSettingListObserver(MDirectPrintSettingListObserver* aObserver);
+
+private:
+	CDirectPrintSettingListBox();
+	void ConstructL(const TRect& aRect);
+
+private:
+	/** Pointer to list observer. */
+	MDirectPrintSettingListObserver* iObserver;
+	};
+
+#endif // __DIRECTPRINTSETTINGLISTBOX_H__