summaryrefslogtreecommitdiff
path: root/plugins/CloudFile/src/Services
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-05-20 15:08:48 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-05-20 15:08:48 +0300
commit8a74e7495ce5ad39de4f5c25121a84d35df90c36 (patch)
tree03e5b4870f09a3163306740c2eebee47bc15b042 /plugins/CloudFile/src/Services
parentc5bf7d6123dd1c3b82ccb8fdb1b068077e9d56d4 (diff)
CMPlugin to receive a reference to PLUGININFOEX
Diffstat (limited to 'plugins/CloudFile/src/Services')
-rw-r--r--plugins/CloudFile/src/Services/dropbox_service.cpp6
-rw-r--r--plugins/CloudFile/src/Services/google_service.cpp2
-rw-r--r--plugins/CloudFile/src/Services/microsoft_service.cpp6
-rw-r--r--plugins/CloudFile/src/Services/yandex_service.cpp4
4 files changed, 9 insertions, 9 deletions
diff --git a/plugins/CloudFile/src/Services/dropbox_service.cpp b/plugins/CloudFile/src/Services/dropbox_service.cpp
index e7be5f4157..7a95027d2a 100644
--- a/plugins/CloudFile/src/Services/dropbox_service.cpp
+++ b/plugins/CloudFile/src/Services/dropbox_service.cpp
@@ -119,7 +119,7 @@ void CDropboxService::HandleJsonError(JSONNode &node)
auto CDropboxService::UploadFile(const char *data, size_t size, const std::string &path)
{
ptrA token(getStringA("TokenSecret"));
- BYTE strategy = db_get_b(NULL, MODULE, "ConflictStrategy", OnConflict::REPLACE);
+ BYTE strategy = db_get_b(NULL, MODULENAME, "ConflictStrategy", OnConflict::REPLACE);
DropboxAPI::UploadFileRequest request(token, path.c_str(), data, size, (OnConflict)strategy);
NLHR_PTR response(request.Send(m_hConnection));
@@ -148,7 +148,7 @@ void CDropboxService::UploadFileChunk(const std::string &sessionId, const char *
auto CDropboxService::CommitUploadSession(const std::string &sessionId, const char *data, size_t size, size_t offset, const std::string &path)
{
ptrA token(getStringA("TokenSecret"));
- BYTE strategy = db_get_b(NULL, MODULE, "ConflictStrategy", OnConflict::REPLACE);
+ BYTE strategy = db_get_b(NULL, MODULENAME, "ConflictStrategy", OnConflict::REPLACE);
DropboxAPI::CommitUploadSessionRequest request(token, sessionId.c_str(), offset, path.c_str(), data, size, (OnConflict)strategy);
NLHR_PTR response(request.Send(m_hConnection));
@@ -289,7 +289,7 @@ void CDropboxService::Upload(FileTransferParam *ftp)
struct CMPluginDropbox : public PLUGIN<CMPluginDropbox>
{
CMPluginDropbox() :
- PLUGIN<CMPluginDropbox>(MODULE "/Dropbox")
+ PLUGIN<CMPluginDropbox>(MODULENAME "/Dropbox", pluginInfoEx)
{
m_hInst = g_plugin.getInst();
diff --git a/plugins/CloudFile/src/Services/google_service.cpp b/plugins/CloudFile/src/Services/google_service.cpp
index 798981a9c9..906e9e817d 100644
--- a/plugins/CloudFile/src/Services/google_service.cpp
+++ b/plugins/CloudFile/src/Services/google_service.cpp
@@ -286,7 +286,7 @@ void CGDriveService::Upload(FileTransferParam *ftp)
struct CMPluginGoogle : public CMPluginBase
{
CMPluginGoogle() :
- CMPluginBase(MODULE "/GDrive")
+ CMPluginBase(MODULENAME "/GDrive", pluginInfoEx)
{
m_hInst = g_plugin.getInst();
diff --git a/plugins/CloudFile/src/Services/microsoft_service.cpp b/plugins/CloudFile/src/Services/microsoft_service.cpp
index 722560aec8..5adf66649a 100644
--- a/plugins/CloudFile/src/Services/microsoft_service.cpp
+++ b/plugins/CloudFile/src/Services/microsoft_service.cpp
@@ -140,7 +140,7 @@ void COneDriveService::HandleJsonError(JSONNode &node)
auto COneDriveService::UploadFile(const std::string &parentId, const std::string &fileName, const char *data, size_t size)
{
ptrA token(getStringA("TokenSecret"));
- BYTE strategy = db_get_b(NULL, MODULE, "ConflictStrategy", OnConflict::REPLACE);
+ BYTE strategy = db_get_b(NULL, MODULENAME, "ConflictStrategy", OnConflict::REPLACE);
OneDriveAPI::UploadFileRequest *request = !parentId.empty()
? new OneDriveAPI::UploadFileRequest(token, parentId.c_str(), fileName.c_str(), data, size, (OnConflict)strategy)
: new OneDriveAPI::UploadFileRequest(token, fileName.c_str(), data, size, (OnConflict)strategy);
@@ -154,7 +154,7 @@ auto COneDriveService::UploadFile(const std::string &parentId, const std::string
auto COneDriveService::CreateUploadSession(const std::string &parentId, const std::string &fileName)
{
ptrA token(getStringA("TokenSecret"));
- BYTE strategy = db_get_b(NULL, MODULE, "ConflictStrategy", OnConflict::REPLACE);
+ BYTE strategy = db_get_b(NULL, MODULENAME, "ConflictStrategy", OnConflict::REPLACE);
OneDriveAPI::CreateUploadSessionRequest *request = !parentId.empty()
? new OneDriveAPI::CreateUploadSessionRequest(token, parentId.c_str(), fileName.c_str(), (OnConflict)strategy)
: new OneDriveAPI::CreateUploadSessionRequest(token, fileName.c_str(), (OnConflict)strategy);
@@ -259,7 +259,7 @@ void COneDriveService::Upload(FileTransferParam *ftp)
struct CMPluginOnedrive : public CMPluginBase
{
CMPluginOnedrive() :
- CMPluginBase(MODULE "/OneDrive")
+ CMPluginBase(MODULENAME "/OneDrive", pluginInfoEx)
{
m_hInst = g_plugin.getInst();
diff --git a/plugins/CloudFile/src/Services/yandex_service.cpp b/plugins/CloudFile/src/Services/yandex_service.cpp
index 6609e7c4b3..c5dbb50400 100644
--- a/plugins/CloudFile/src/Services/yandex_service.cpp
+++ b/plugins/CloudFile/src/Services/yandex_service.cpp
@@ -153,7 +153,7 @@ void CYandexService::HandleJsonError(JSONNode &node)
auto CYandexService::CreateUploadSession(const std::string &path)
{
ptrA token(getStringA("TokenSecret"));
- BYTE strategy = db_get_b(NULL, MODULE, "ConflictStrategy", OnConflict::REPLACE);
+ BYTE strategy = db_get_b(NULL, MODULENAME, "ConflictStrategy", OnConflict::REPLACE);
YandexAPI::GetUploadUrlRequest request(token, path.c_str(), (OnConflict)strategy);
NLHR_PTR response(request.Send(m_hConnection));
@@ -280,7 +280,7 @@ void CYandexService::Upload(FileTransferParam *ftp)
struct CMPluginYandex : public CMPluginBase
{
CMPluginYandex() :
- CMPluginBase(MODULE "/YandexDisk")
+ CMPluginBase(MODULENAME "/YandexDisk", pluginInfoEx)
{
m_hInst = g_plugin.getInst();