YSTest  PreAlpha_b400_20130424
The YSLib Test Project
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义  
shlds.h
浏览该文件的文档.
1 /*
2  Copyright by FrankHB 2010 - 2013.
3 
4  This file is part of the YSLib project, and may only be used,
5  modified, and distributed under the terms of the YSLib project
6  license, LICENSE.TXT. By continuing to use, modify, or distribute
7  this file you indicate that you have read the license and
8  understand and accept it fully.
9 */
10 
29 #ifndef INC_Helper_shlds_h_
30 #define INC_Helper_shlds_h_ 1
31 
32 #include "Helper/GUIShell.h"
33 
35 
36 YSL_BEGIN_NAMESPACE(Shells)
37 
38 
42 class YF_API ShlCLI : public Shell
43 {
44 public:
49 
50 
53  int
54  ExecuteCommand(const ucs2_t*);
58  int
59  ExecuteCommand(const String& s)
60  {
61  return ExecuteCommand(s.c_str());
62  }
63 };
64 
65 YSL_END_NAMESPACE(Shells)
66 
67 
69 
74 YF_API void
75 ResetDSDesktops(Desktop&, Desktop&);
76 
77 
82 class YF_API ShlDS : public Shells::GUIShell
83 {
84 private:
89  shared_ptr<Desktop> desktop_up_ptr, desktop_down_ptr;
90 
91 protected:
98  bool bUpdateUp, bUpdateDown;
100 
101 public:
107  ShlDS(const shared_ptr<Desktop>& = {}, const shared_ptr<Desktop>& = {});
108 
109  DefGetter(const ynothrow, const shared_ptr<Desktop>&, DesktopUpHandle,
110  desktop_up_ptr)
111  DefGetter(const ynothrow, const shared_ptr<Desktop>&, DesktopDownHandle,
112  desktop_down_ptr)
113  DefGetter(const ynothrow, Desktop&, DesktopUp, *desktop_up_ptr)
114  DefGetter(const ynothrow, Desktop&, DesktopDown, *desktop_down_ptr)
115 
125  void
126  OnGotMessage(const Message&) override;
127 
136  void
137  OnInput() override;
138 };
139 
140 
147 
149 
151 
153 
155 
156 YSL_END
157 
158 #endif
159