devicemgmtdialogsplugin/inc/devicemanagementnotifierutils.h
changeset 30 d3981f4fe6a4
child 42 aa33c2cb9a50
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/devicemgmtdialogsplugin/inc/devicemanagementnotifierutils.h	Fri Jun 11 13:29:40 2010 +0300
@@ -0,0 +1,103 @@
+/*
+* Copyright (c) 2010 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: 
+*
+*/
+
+#ifndef DEVICEMANAGEMENTNOTIFIERUTILS_H_
+#define DEVICEMANAGEMENTNOTIFIERUTILS_H_
+
+#include <hbpushbutton.h>
+#include <qtimeline.h>
+#include <hbcheckbox.h>
+#include <hblabel.h>
+#include <hblineedit.h>
+#include <hbtextedit.h>
+#include <QGraphicsWidget>
+#include <hbdocumentloader.h>
+#include <hbinputeditorinterface.h>
+#include <hbview.h>
+#include <hbprogressbar.h>
+#include <hbdialog.h>
+#include <hbmainwindow.h>
+#include "syncmlnotifierprivate.h"
+#include <hbprogressdialog.h>
+
+class syncmlnotifier;
+
+class devicemanagementnotifierwidget;
+class syncmlConnectNotifier;
+class devicemanagementnotifierutils :public HbDialog  {
+
+Q_OBJECT
+
+public:
+devicemanagementnotifierutils(devicemanagementnotifierwidget* ptr,const QVariantMap &parameters);
+virtual ~devicemanagementnotifierutils();
+private:
+syncmlnotifier* notifier;
+syncmlConnectNotifier* connectDialog;
+  
+};
+
+class syncmlnotifier:public QObject {
+
+Q_OBJECT
+
+public:
+syncmlnotifier(devicemanagementnotifierwidget* ptr);
+virtual ~syncmlnotifier();
+public:
+     void launchDialog(const QVariantMap &parameters);
+     void createserverinitnotifier(int profileid, int uimode,QString& servername);
+     void createserveralertinformative(const QString &string);
+     void createserveralertconfirmative(const QString &string);
+
+public slots:
+    void okSelected();
+    void cancelSelected(); 
+    void infoNoteOkSelected();
+    void conirmNoteOkSelected();
+    void conirmNoteCancelSelected();
+      
+
+signals:
+    void servertextmessage(const QString &string);
+ 
+private:
+  syncmlnotifierprivate* msymnotifier;
+ devicemanagementnotifierwidget* iPtr;
+
+};
+    
+class syncmlConnectNotifier:public QObject {
+
+Q_OBJECT
+
+public:
+syncmlConnectNotifier(devicemanagementnotifierwidget* ptr);
+virtual ~syncmlConnectNotifier();
+public:
+     void launchDialog(const QVariantMap &parameters);
+  
+public slots:        
+void buttonClicked(HbAction* action);
+
+private:
+HbProgressDialog *pDialog;      
+devicemanagementnotifierwidget* iPtr;
+
+};
+
+#endif