--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/emailuis/nmsettingui/inc/nmmailboxsettingsmanager.h Fri Apr 16 14:51:52 2010 +0300
@@ -0,0 +1,84 @@
+/*
+* 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 NMMAILBOXSETTINGSMANAGER_H
+#define NMMAILBOXSETTINGSMANAGER_H
+
+#include <QList>
+#include <QObject>
+#include <QVariant>
+
+#include "nmsettingscommon.h"
+
+class NmMailbox;
+class NmDataManager;
+class HbIcon;
+class NmId;
+class HbDataFormModel;
+class HbDataForm;
+class QPluginLoader;
+
+
+class NmMailboxSettingsManager : public QObject
+{
+ Q_OBJECT
+
+public:
+
+ NmMailboxSettingsManager();
+
+ ~NmMailboxSettingsManager();
+
+ void listMailboxes(QList<NmMailbox *> &mailboxList);
+
+ HbIcon &mailboxIcon(const NmId &mailboxId) const;
+
+ void populateModel(HbDataFormModel &model,
+ HbDataForm &form,
+ const NmId &mailboxId) const;
+
+
+signals:
+
+ void mailboxListChanged(const NmId &mailboxId,
+ NmSettings::MailboxEventType type);
+
+ void mailboxPropertyChanged(const NmId &mailboxId,
+ QVariant property,
+ QVariant value);
+
+
+private:
+
+ Q_DISABLE_COPY(NmMailboxSettingsManager)
+
+ void loadPlugins();
+
+ void unloadPlugins();
+
+
+private: // Data
+
+ // Owned.
+ NmDataManager* mDataManager;
+
+ QList<QPluginLoader *> mPluginLoaders;
+};
+
+#endif // NMMAILBOXSETTINGSMANAGER_H
+
+// End of file.