QTfrontend/hwform.h
changeset 1225 f882a92ef872
parent 1223 41d7283934c1
child 1235 070629f3902d
equal deleted inserted replaced
1224:0b9fbee5ceda 1225:f882a92ef872
    24 #include <QTime>
    24 #include <QTime>
    25 
    25 
    26 #include "netserver.h"
    26 #include "netserver.h"
    27 #include "game.h"
    27 #include "game.h"
    28 #include "ui_hwform.h"
    28 #include "ui_hwform.h"
       
    29 #include "SDLs.h"
    29 
    30 
    30 class HWGame;
    31 class HWGame;
    31 class HWTeam;
    32 class HWTeam;
    32 class HWNewNet;
    33 class HWNewNet;
    33 class GameUIConfig;
    34 class GameUIConfig;
    82 	void GetRecord(bool isDemo, const QByteArray & record);
    83 	void GetRecord(bool isDemo, const QByteArray & record);
    83 	void CreateNetGame();
    84 	void CreateNetGame();
    84 	void UpdateWeapons();
    85 	void UpdateWeapons();
    85 	void NetWeaponNameChanged(const QString& name);
    86 	void NetWeaponNameChanged(const QString& name);
    86 	void onFrontendFullscreen(bool value);
    87 	void onFrontendFullscreen(bool value);
    87 	void StartMusic();
       
    88 	void StopMusic();
       
    89 
    88 
    90 private:
    89 private:
    91 	void _NetConnect(const QString & hostName, quint16 port, const QString & nick);
    90 	void _NetConnect(const QString & hostName, quint16 port, const QString & nick);
    92 	void UpdateTeamsLists(const QStringList* editable_teams=0);
    91 	void UpdateTeamsLists(const QStringList* editable_teams=0);
    93 	void CreateGame(GameCFGWidget * gamecfg, TeamSelWidget* pTeamSelWidget, QString ammo);
    92 	void CreateGame(GameCFGWidget * gamecfg, TeamSelWidget* pTeamSelWidget, QString ammo);
   114 	GameUIConfig * config;
   113 	GameUIConfig * config;
   115 	QStack<quint8> PagesStack;
   114 	QStack<quint8> PagesStack;
   116 	HWNetServer* pnetserver;
   115 	HWNetServer* pnetserver;
   117 	HWNetRegisterServer* pRegisterServer;
   116 	HWNetRegisterServer* pRegisterServer;
   118 	QTime eggTimer;
   117 	QTime eggTimer;
       
   118 	SDLInteraction sdli;
   119 	void AddStatText(const QString & msg);
   119 	void AddStatText(const QString & msg);
   120 	void OnPageShown(quint8 id, quint8 lastid=0);
   120 	void OnPageShown(quint8 id, quint8 lastid=0);
   121 };
   121 };
   122 
   122 
   123 #endif
   123 #endif