QEverCloud  6.2.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 "AsyncResult.h"
12 #include "Export.h"
13 
14 #include "generated/Types.h"
15 
16 #include <QByteArray>
17 #include <QString>
18 #include <QNetworkAccessManager>
19 
20 namespace qevercloud {
21 
23 class InkNoteImageDownloaderPrivate;
43 {
44 public:
52 
69  QString host, QString shardId, QString authenticationToken, int width,
70  int height);
71 
72  virtual ~InkNoteImageDownloader();
73 
78  InkNoteImageDownloader & setHost(QString host);
79 
85  InkNoteImageDownloader & setShardId(QString shardId);
86 
92  InkNoteImageDownloader & setAuthenticationToken(
93  QString authenticationToken);
94 
99  InkNoteImageDownloader & setWidth(int width);
100 
105  InkNoteImageDownloader & setHeight(int height);
106 
132  QByteArray download(
133  Guid guid, const bool isPublic = false,
134  const qint64 timeoutMsec = 30000);
135 
136 private:
137  InkNoteImageDownloaderPrivate * const d_ptr;
138  Q_DECLARE_PRIVATE(InkNoteImageDownloader)
139 };
140 
141 } // namespace qevercloud
142 
143 #endif // QEVERCLOD_INK_NOTE_IMAGE_DOWNLOADER_H
the InkNoteImageDownloader class is for downloading the images of ink notes which can be created with...
Definition: InkNoteImageDownloader.h:42
QString Guid
Definition: Types.h:62
#define QEVERCLOUD_EXPORT
Definition: Export.h:19
Definition: AsyncResult.h:21