emailservices/nmregister/inc/nmmailboxregisterinterface_p.h
changeset 20 ecc8def7944a
child 23 2dc6caa42ec3
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/emailservices/nmregister/inc/nmmailboxregisterinterface_p.h	Mon May 03 12:23:15 2010 +0300
@@ -0,0 +1,74 @@
+/*
+* 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 NMMAILBOXREGISTERINTERFACEPRIVATE_H_
+#define NMMAILBOXREGISTERINTERFACEPRIVATE_H_
+
+//  INCLUDES
+#include <QObject>
+#include <qmobilityglobal.h>
+
+#ifdef Q_OS_SYMBIAN
+#include <xqserviceprovider.h>
+#else
+#include <QVariant>
+#endif
+
+
+//  FORWARD DECLARATIONS
+class QString;
+
+QTM_BEGIN_NAMESPACE
+class QServiceManager;
+QTM_END_NAMESPACE
+
+QTM_USE_NAMESPACE
+
+
+#ifdef Q_OS_SYMBIAN
+class NmMailboxRegisterInterfacePrivate : public XQServiceProvider
+#else
+class NmMailboxRegisterInterfacePrivate : public QObject
+#endif
+{
+    Q_OBJECT
+
+public:
+
+    explicit NmMailboxRegisterInterfacePrivate(QObject *parent = 0);
+    ~NmMailboxRegisterInterfacePrivate();
+
+
+public slots:
+
+    bool registerNewMailbox(quint64 accountId, QString accountName, QString accountIconName);
+
+    bool updateMailboxName(quint64 accountId, QString newName);
+    
+    bool unregisterMailbox(quint64 accountId);
+
+private:
+   
+    bool pushWidgetToHomescreen(quint64 a);
+
+private: 
+    QServiceManager* mManager;
+    QObject* mService;
+};
+
+#endif /* NMMAILBOXREGISTERINTERFACE_H_ */