~rpadovani/reminders-app/editNotebooksName

« back to all changes in this revision

Viewing changes to src/plugin/Evernote/jobs/savenotebookjob.h

MergingĀ lp:~mzanetti/reminders-app/save-notebook

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright: 2013 Canonical, Ltd
 
3
 *
 
4
 * This file is part of reminders
 
5
 *
 
6
 * reminders is free software: you can redistribute it and/or modify
 
7
 * it under the terms of the GNU General Public License as published by
 
8
 * the Free Software Foundation; version 3.
 
9
 *
 
10
 * reminders is distributed in the hope that it will be useful,
 
11
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
12
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
13
 * GNU General Public License for more details.
 
14
 *
 
15
 * You should have received a copy of the GNU General Public License
 
16
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
17
 *
 
18
 * Authors: Michael Zanetti <michael.zanetti@canonical.com>
 
19
 */
 
20
 
 
21
#ifndef SAVENOTEBOOKJOB_H
 
22
#define SAVENOTEBOOKJOB_H
 
23
 
 
24
#include "notesstorejob.h"
 
25
 
 
26
class SaveNotebookJob : public NotesStoreJob
 
27
{
 
28
    Q_OBJECT
 
29
public:
 
30
    explicit SaveNotebookJob(Notebook *notebook, QObject *parent = 0);
 
31
 
 
32
signals:
 
33
    void jobDone(EvernoteConnection::ErrorCode errorCode, const QString &errorMessage);
 
34
 
 
35
protected:
 
36
    void startJob();
 
37
    void emitJobDone(EvernoteConnection::ErrorCode errorCode, const QString &errorMessage);
 
38
 
 
39
private:
 
40
    Notebook* m_notebook;
 
41
};
 
42
 
 
43
#endif // SAVENOTEBOOKJOB_H