HoverRace  2.0
SelectRoomDialog.h
Go to the documentation of this file.
1 #ifdef HR_LEGACY_BUILD
2 
3 // SelectRoomDialog.h
4 // Header for the room list selector.
5 //
6 // Copyright (c) 2009, 2010 Michael Imamura.
7 //
8 // Licensed under GrokkSoft HoverRace SourceCode License v1.0(the "License");
9 // you may not use this file except in compliance with the License.
10 //
11 // A copy of the license should have been attached to the package from which
12 // you have taken this file. If you can not find the license you can not use
13 // this file.
14 //
15 //
16 // The author makes no representations about the suitability of
17 // this software for any purpose. It is provided "as is" "AS IS",
18 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
19 // implied.
20 //
21 // See the License for the specific language governing permissions
22 // and limitations under the License.
23 
24 #pragma once
25 
26 #include "RoomListDialog.h"
27 
28 namespace HoverRace {
29 namespace Client {
30 
35 class SelectRoomDialog : public RoomListDialog
36 {
37  typedef RoomListDialog SUPER;
38  public:
39  SelectRoomDialog(const std::string &playerName);
40  virtual ~SelectRoomDialog();
41 
42  public:
43  const std::string &GetPlayerName() const;
44 
45  public:
46  RoomListPtr ShowModal(HINSTANCE hinst, HWND parent);
47 
48  protected:
49  virtual void HandleLoadFinished(HWND hwnd, result_t result);
50  private:
51  void PopulateList(HWND hwnd);
52 
53  protected:
54  virtual BOOL DlgProc(HWND hwnd, UINT message, WPARAM wparam, LPARAM lparam);
55 
56  private:
57  std::string playerName;
58  volatile bool finished;
59 };
60 
61 } // namespace Client
62 } // namespace HoverRace
63 #endif
std::shared_ptr< RoomList > RoomListPtr
Definition: RoomList.h:96
Definition: Announcement.h:24