limit subtask list
[Sak.git] / gmailstorage / gmailinterface.h
blob1f570f345d903a6ee58a89e6d5dac10a8c0ef9b6
1 #ifndef GMAILINTERFACE_H
2 #define GMAILINTERFACE_H
4 #include <QString>
5 #include <QStringList>
7 class GmailInterface
9 public:
10 GmailInterface() {}
11 virtual ~GmailInterface() {}
12 virtual bool isValid() { return false; }
13 virtual void storeTaskFiles(const QStringList& filePaths) = 0;
14 virtual bool login() = 0;
15 // clear cached data
16 virtual bool forceLogin() { m_user=""; m_pass=""; login(); return true; }
17 virtual QStringList fetchLatestTasks() { return QStringList(); }
18 protected:
19 QString m_user;
20 QString m_pass;
21 class sendByEmailAction;
24 #endif // GMAILPYINTERFACE_H