diff -r e7aa27f58ae1 -r 578830873419 emailuis/nmsettingui/inc/nmsettingsviewlauncher.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/emailuis/nmsettingui/inc/nmsettingsviewlauncher.h Fri Apr 16 14:51:52 2010 +0300 @@ -0,0 +1,76 @@ +/* +* 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 NMSETTINGSVIEWLAUNCHER_H +#define NMSETTINGSVIEWLAUNCHER_H + +#include +#include + +#include "nmsettinguidef.h" +#include "nmsettingscommon.h" + +class NmSettingsViewFactory; +class CpItemDataHelper; +class QString; +class NmId; +class HbIcon; +class HbMainWindow; + + +/*! + \class NmSettingsViewLauncher + \brief Launches settings view for given mailbox. +*/ +class NMAILSETTINGUI_EXPORT NmSettingsViewLauncher : public QObject +{ + Q_OBJECT + +public: + + NmSettingsViewLauncher(); + + virtual ~NmSettingsViewLauncher(); + + void launchSettingsView(const NmId &mailboxId, + const QString &mailboxName); + + +signals: + + void mailboxListChanged(const NmId &mailboxId, + NmSettings::MailboxEventType type); + + void mailboxPropertyChanged(const NmId &mailboxId, + QVariant property, + QVariant value); + + +private: + + Q_DISABLE_COPY(NmSettingsViewLauncher) + + +private: // data + + NmSettingsViewFactory *mSettingsViewFactory; // Owned + CpItemDataHelper *mItemDataHelper; // Owned +}; + +#endif // NMSETTINGSVIEWLAUNCHER_H + +// End of file.