25 lines
539 B
C++
25 lines
539 B
C++
#pragma once
|
|
|
|
#include "config.hpp"
|
|
#include "settings.hpp"
|
|
|
|
#include <windows.h>
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
namespace uploader {
|
|
|
|
struct Result {
|
|
bool success = false;
|
|
DWORD httpStatus = 0;
|
|
std::wstring responseUrl;
|
|
std::wstring message;
|
|
};
|
|
|
|
// Result ownership is transferred to the window through
|
|
// WM_NIGHTSHOT_UPLOAD_FINISHED in lParam.
|
|
[[nodiscard]] bool start(HWND notificationTarget, std::vector<BYTE>&& png,
|
|
const settings::AppSettings& configuration);
|
|
|
|
} // namespace uploader
|