cmmanager/cmmgr/Framework/Inc/cmpluginmultilinedialog.h
branchRCL_3
changeset 58 83ca720e2b9a
parent 0 5a93021fdf25
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/cmmanager/cmmgr/Framework/Inc/cmpluginmultilinedialog.h	Wed Sep 01 12:23:51 2010 +0100
@@ -0,0 +1,65 @@
+/*
+* 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:  Declaration of class CCmPluginMultiLineDialog.
+*
+*/
+
+#ifndef CM_PLUGIN_MULTILINE_DIALOG_H
+#define CM_PLUGIN_MULTILINE_DIALOG_H
+
+// INCLUDE FILES
+#include <AknQueryDialog.h>
+
+/**
+ *  A new class to extend the functionality of the existing 
+ *  CAKnMultiLineIpQueryDialog to be able to accept 0 length settings...
+ *  Nothing else is changed.
+ *
+ *  @lib cmmanager.lib
+ *  @since S60 v3.2
+ */
+NONSHARABLE_CLASS( CCmPluginMultiLineDialog ) : 
+                    public CAknMultiLineDataQueryDialog
+    {
+    public:
+
+        /**
+        * Multiline data query dialog, 2 lines
+        * @param aText1 Text1
+        * @param aText2 Text2
+        * @param aTone Tone 
+        * @return A constructed CCmPluginMultiLineDialog
+        */
+       IMPORT_C static CCmPluginMultiLineDialog* NewL(
+                            TDes&  aText1, TDes&  aText2, 
+                            TTone aTone = ENoTone);
+
+    protected:
+
+        /**
+        * If the query text is ok (retrieved form query controls) then 
+        * display the left soft key, otherwise hide it.
+        */
+        void UpdateLeftSoftKeyL();
+
+    private:
+
+        /**
+        * Constructor
+        * @param aTone Tone
+        */
+        CCmPluginMultiLineDialog( const TTone& aTone );
+    };
+
+#endif