QEverCloud  4.1.0
Unofficial Evernote Cloud API for Qt
InkNoteImageDownloader.h
Go to the documentation of this file.
1 
8 #ifndef QEVERCLOD_INK_NOTE_IMAGE_DOWNLOADER_H
9 #define QEVERCLOD_INK_NOTE_IMAGE_DOWNLOADER_H
10 
11 #include "export.h"
12 #include "AsyncResult.h"
13 #include "generated/types.h"
14 #include <QByteArray>
15 #include <QString>
16 #include <QNetworkAccessManager>
17 
18 namespace qevercloud {
19 
21 class InkNoteImageDownloaderPrivate;
38 {
39 public:
47 
62  InkNoteImageDownloader(QString host, QString shardId, QString authenticationToken, int width, int height);
63 
64  virtual ~InkNoteImageDownloader();
65 
70  InkNoteImageDownloader & setHost(QString host);
71 
76  InkNoteImageDownloader & setShardId(QString shardId);
77 
83  InkNoteImageDownloader & setAuthenticationToken(QString authenticationToken);
84 
89  InkNoteImageDownloader & setWidth(int width);
90 
95  InkNoteImageDownloader & setHeight(int height);
96 
119  QByteArray download(Guid guid, bool isPublic = false);
120 
121 private:
122  InkNoteImageDownloaderPrivate * const d_ptr;
123  Q_DECLARE_PRIVATE(InkNoteImageDownloader)
124 };
125 
126 } // namespace qevercloud
127 
128 #endif // QEVERCLOD_INK_NOTE_IMAGE_DOWNLOADER_H
QString Guid
Definition: types.h:521
the class is for downloading the images of ink notes which can be created with the official Evernote ...
Definition: InkNoteImageDownloader.h:37
#define QEVERCLOUD_EXPORT
Definition: export.h:19
Definition: AsyncResult.h:18