QEverCloud  6.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 "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 
73 
79 
85  InkNoteImageDownloader & setShardId(QString shardId);
86 
93  QString authenticationToken);
94 
100 
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
qevercloud::InkNoteImageDownloader::InkNoteImageDownloader
InkNoteImageDownloader(QString host, QString shardId, QString authenticationToken, int width, int height)
Constructs InkNoteImageDownloader.
Export.h
Types.h
qevercloud::Guid
QString Guid
Definition: Types.h:62
qevercloud::InkNoteImageDownloader::setShardId
InkNoteImageDownloader & setShardId(QString shardId)
qevercloud::InkNoteImageDownloader::setAuthenticationToken
InkNoteImageDownloader & setAuthenticationToken(QString authenticationToken)
qevercloud
Definition: AsyncResult.h:21
qevercloud::InkNoteImageDownloader::~InkNoteImageDownloader
virtual ~InkNoteImageDownloader()
qevercloud::InkNoteImageDownloader::setHost
InkNoteImageDownloader & setHost(QString host)
qevercloud::InkNoteImageDownloader::setHeight
InkNoteImageDownloader & setHeight(int height)
qevercloud::InkNoteImageDownloader::setWidth
InkNoteImageDownloader & setWidth(int width)
qevercloud::InkNoteImageDownloader::download
QByteArray download(Guid guid, const bool isPublic=false, const qint64 timeoutMsec=30000)
Downloads the image for the ink note.
qevercloud::InkNoteImageDownloader::InkNoteImageDownloader
InkNoteImageDownloader()
Default constructor.
QEVERCLOUD_EXPORT
#define QEVERCLOUD_EXPORT
Definition: Export.h:19
qevercloud::InkNoteImageDownloader
the InkNoteImageDownloader class is for downloading the images of ink notes which can be created with...
Definition: InkNoteImageDownloader.h:43
AsyncResult.h