3 ==============================================================================
\r
5 This file is part of the async
\r
6 Copyright 2005-10 by Satoshi Fujiwara.
\r
8 async can be redistributed and/or modified under the terms of the
\r
9 GNU General Public License, as published by the Free Software Foundation;
\r
10 either version 2 of the License, or (at your option) any later version.
\r
12 async is distributed in the hope that it will be useful,
\r
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
\r
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
\r
15 GNU General Public License for more details.
\r
17 You should have received a copy of the GNU General Public License
\r
18 along with async; if not, visit www.gnu.org/licenses or write to the
\r
19 Free Software Foundation, Inc., 59 Temple Place, Suite 330,
\r
20 Boston, MA 02111-1307 USA
\r
22 ==============================================================================
\r
24 #include "singleton.h"
\r
25 #include "exception.h"
\r
26 #include "sf_memory.h"
\r
27 #include "test_window.h"
\r
30 class application : public singleton<application>
\r
34 : public sf::win32_error_exception
\r
36 exception(uint32_t hr) : win32_error_exception(hr) {};
\r
37 exception() : win32_error_exception() {} ;
\r
44 int execute(HINSTANCE hInstance,
\r
45 HINSTANCE hPrevInstance,
\r
50 std::wstring& app_id(){return app_id_;};
\r
51 HINSTANCE instance_handle() {return instance_handle_;};
\r
53 // アプリケーションのカレントディレクトリを返す
\r
54 const std::wstring& base_directory() const { return base_directory_; }
\r
57 // ----------------------------------------
\r
59 // ----------------------------------------
\r
61 //void wasapi_setup();
\r
62 HINSTANCE instance_handle_;
\r
65 //---------------------------------------
\r
67 //---------------------------------------
\r
72 std::wstring base_directory_;
\r
73 std::unique_ptr<test_window> window_;
\r
74 //--------------------------------
\r
76 //--------------------------------
\r
79 static std::wstring app_id_;
\r
80 static const int WAIT_TIMEOUT_DEFAULT = 100;
\r