Changeset View
Changeset View
Standalone View
Standalone View
libksieve/ksieveui/vacation/multiimapvacationmanager.h
Show All 13 Lines | /* | ||||
with this program; if not, write to the Free Software Foundation, Inc., | with this program; if not, write to the Free Software Foundation, Inc., | ||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | ||||
*/ | */ | ||||
#ifndef MULTIIMAPVACATIONMANAGER_H | #ifndef MULTIIMAPVACATIONMANAGER_H | ||||
#define MULTIIMAPVACATIONMANAGER_H | #define MULTIIMAPVACATIONMANAGER_H | ||||
#include <QObject> | #include <QObject> | ||||
#include <QMap> | |||||
#include "ksieveui_export.h" | #include "ksieveui_export.h" | ||||
class KUrl; | |||||
namespace KSieveUi { | namespace KSieveUi { | ||||
class CheckKep14SupportJob; | |||||
class VacationCheckJob; | |||||
class KSIEVEUI_EXPORT MultiImapVacationManager : public QObject | class KSIEVEUI_EXPORT MultiImapVacationManager : public QObject | ||||
{ | { | ||||
Q_OBJECT | Q_OBJECT | ||||
public: | public: | ||||
explicit MultiImapVacationManager(QObject *parent=0); | explicit MultiImapVacationManager(QObject *parent=0); | ||||
~MultiImapVacationManager(); | ~MultiImapVacationManager(); | ||||
void checkVacation(); | void checkVacation(); | ||||
QMap<QString, KUrl> serverList(); | |||||
void checkVacation(const QString &serverName, const KUrl &url); | |||||
Q_SIGNALS: | Q_SIGNALS: | ||||
void scriptActive(bool active, const QString &serverName); | void scriptActive(bool active, const QString &serverName); | ||||
void requestEditVacation(); | void scriptAvailable(const QString &serverName, const QStringList &sieveCapabilities, const QString &scriptName, const QString &script, bool active); | ||||
private slots: | private slots: | ||||
void slotScriptActive(bool active, const QString &serverName); | void slotScriptActive(VacationCheckJob* job, QString scriptName, bool active); | ||||
void slotCheckKep14Ended(CheckKep14SupportJob *job, bool success); | |||||
private: | private: | ||||
int mNumberOfJobs; | int mNumberOfJobs; | ||||
bool mQuestionAsked; | |||||
bool mCheckInProgress; | bool mCheckInProgress; | ||||
QMap<QString, bool> mKep14Support; //if the server has KEP:14 support | |||||
}; | }; | ||||
} | } | ||||
#endif // MULTIIMAPVACATIONMANAGER_H | #endif // MULTIIMAPVACATIONMANAGER_H |