Wt examples  4.2.2
HangmanGame.h
Go to the documentation of this file.
1 // This may look like C code, but it's really -*- C++ -*-
2 /*
3  * Copyright (C) 2011 Emweb bv, Herent, Belgium
4  *
5  * See the LICENSE file for terms of use.
6  */
7 
8 #ifndef HANGMANGAME_H_
9 #define HANGMANGAME_H_
10 
11 #include <Wt/WContainerWidget.h>
12 
13 #include "Session.h"
14 
15 using namespace Wt;
16 
17 namespace Wt {
18  class WStackedWidget;
19  class WAnchor;
20 }
21 
22 class HangmanWidget;
23 class HighScoresWidget;
24 class Session;
25 
27 {
28 public:
29  HangmanGame();
30 
31  void handleInternalPath(const std::string &internalPath);
32 
33 private:
40 
42 
43  void onAuthEvent();
44  void showGame();
45  void showHighScores();
46 };
47 
48 #endif //HANGMANGAME_H_
Wt
HangmanWidget
Definition: HangmanWidget.h:20
HangmanGame::session_
Session session_
Definition: HangmanGame.h:41
HangmanGame::mainStack_
WStackedWidget * mainStack_
Definition: HangmanGame.h:34
Wt::WContainerWidget
HighScoresWidget
Definition: HighScoresWidget.h:17
Wt::WStackedWidget
Session
Definition: Session.h:25
HangmanGame::backToGameAnchor_
WAnchor * backToGameAnchor_
Definition: HangmanGame.h:38
HangmanGame::game_
HangmanWidget * game_
Definition: HangmanGame.h:35
HangmanGame::links_
WContainerWidget * links_
Definition: HangmanGame.h:37
Wt::WAnchor
HangmanGame::scoresAnchor_
WAnchor * scoresAnchor_
Definition: HangmanGame.h:39
HangmanGame
Definition: HangmanGame.h:26
HangmanGame::scores_
HighScoresWidget * scores_
Definition: HangmanGame.h:36
Session.h

Generated on Fri Mar 20 2020 for the C++ Web Toolkit (Wt) by doxygen 1.8.17