-
Notifications
You must be signed in to change notification settings - Fork 4
/
Utils.h
30 lines (27 loc) · 1015 Bytes
/
Utils.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#pragma once
#include <string>
#include "RtnResources.h"
#include "Connector.h"
#define WM_CUSTOM_NOTIFY_ICON (WM_APP + 1)
#define BASIC_AUTH L"userinput"
using namespace std;
namespace Auth {
string GetKerberosTicket(const wstring& sKerberosTargetName);
}
namespace IO {
wstring ToWideString(const string& string);
string ToString(const wstring& string);
wstring GetFilePath(const wstring& relativeFileName);
wstring GetTemporaryFilePath(const wstring& relativeFileName);
wstring GetRunaVersionByUrl(const string& url);
wstring GetServerTypeByUrl(const string& url);
string UriEncode(const string & sSrc);
}
namespace UI {
void QuitApplication(HWND hWnd, Server::Connector* connector, const char* cause);
void LaunchBrowser(HWND hWnd);
void LaunchBrowser(HWND hWnd, wstring login, wstring password);
void SetMenuLabel(HMENU hMenu, int nID, const wstring& label);
bool UpdateNotificationIcon(HWND hWnd, Server::Connector* connector, bool modeAdd = false);
int DeleteNotificationIcon(HWND hWnd);
}