diff --git a/SiaDrive/SiaDrive.htm b/SiaDrive/SiaDrive.htm index b3f321d..fb51744 100644 --- a/SiaDrive/SiaDrive.htm +++ b/SiaDrive/SiaDrive.htm @@ -1,20 +1,25 @@ - - - - - - - - - - - -
-TODO: Place controls here. -
-  -
- - + + + + + + + + +
+
+
+ + + + +
+ + + +
+   +
+ diff --git a/SiaDrive/SiaDrive.vcxproj b/SiaDrive/SiaDrive.vcxproj index e7a4850..00e10bc 100644 --- a/SiaDrive/SiaDrive.vcxproj +++ b/SiaDrive/SiaDrive.vcxproj @@ -117,6 +117,7 @@ Disabled _WINDOWS;_DEBUG;%(PreprocessorDefinitions) true + ..\SiaDrive.Api\ Windows @@ -170,6 +171,7 @@ true _WINDOWS;NDEBUG;%(PreprocessorDefinitions) true + ..\SiaDrive.Api\ Windows diff --git a/SiaDrive/SiaDriveDlg.cpp b/SiaDrive/SiaDriveDlg.cpp index 8ffe747..b40588a 100644 --- a/SiaDrive/SiaDriveDlg.cpp +++ b/SiaDrive/SiaDriveDlg.cpp @@ -54,7 +54,8 @@ END_DHTML_EVENT_MAP() CSiaDriveDlg::CSiaDriveDlg(CWnd* pParent /*=NULL*/) - : CDHtmlDialog(IDD_SIADRIVE_DIALOG, IDR_HTML_SIADRIVE_DIALOG, pParent) + : CDHtmlDialog(IDD_SIADRIVE_DIALOG, IDR_HTML_SIADRIVE_DIALOG, pParent), + _siaApi({L"localhost", 9980, L"1.1.0"}) { m_hIcon = AfxGetApp()->LoadIcon(IDR_MAINFRAME); } @@ -100,7 +101,7 @@ BOOL CSiaDriveDlg::OnInitDialog() SetIcon(m_hIcon, TRUE); // Set big icon SetIcon(m_hIcon, FALSE); // Set small icon - // TODO: Add extra initialization here + String version = _siaApi.GetServerVersion(); return TRUE; // return TRUE unless you set the focus to a control } diff --git a/SiaDrive/SiaDriveDlg.h b/SiaDrive/SiaDriveDlg.h index b933365..fdc8358 100644 --- a/SiaDrive/SiaDriveDlg.h +++ b/SiaDrive/SiaDriveDlg.h @@ -3,7 +3,8 @@ // #pragma once - +#include +using namespace Sia::Api; // CSiaDriveDlg dialog class CSiaDriveDlg : public CDHtmlDialog @@ -34,4 +35,7 @@ protected: afx_msg HCURSOR OnQueryDragIcon(); DECLARE_MESSAGE_MAP() DECLARE_DHTML_EVENT_MAP() + +private: + CSiaApi _siaApi; };