~keith-penguin/kdegames/trunk

« back to all changes in this revision

Viewing changes to kbattleship/src/mainwindow.h

  • Committer: Keith Worrell
  • Date: 2009-03-18 05:35:28 UTC
  • Revision ID: keith.worrell@gmail.com-20090318053528-mx6x9c0ngmg0kg6p
imported project

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
  Copyright (c) 2007 Paolo Capriotti <p.capriotti@gmail.com>
 
3
  Copyright (c) 2007 Riccardo Iaconelli <ruphy@fsfe.org>
 
4
            
 
5
  This program is free software; you can redistribute it and/or modify
 
6
  it under the terms of the GNU General Public License as published by
 
7
  the Free Software Foundation; either version 2 of the License, or
 
8
  (at your option) any later version.
 
9
*/
 
10
 
 
11
#ifndef MAINWINDOW_H
 
12
#define MAINWINDOW_H
 
13
 
 
14
#include <KXmlGuiWindow>
 
15
 
 
16
class PlayField;
 
17
 
 
18
namespace KGGZMod
 
19
{
 
20
    class Module;
 
21
    class Event;
 
22
}
 
23
 
 
24
class MainWindow : public KXmlGuiWindow
 
25
{
 
26
Q_OBJECT
 
27
    PlayField* m_main;
 
28
public:
 
29
    MainWindow();
 
30
protected:
 
31
    void setupActions();
 
32
private slots:
 
33
    void networkErrorHandler();
 
34
    void networkData(int fd);
 
35
    void networkEvent(const KGGZMod::Event& event);
 
36
    
 
37
    void startingGame();
 
38
    void welcomeScreen();
 
39
private:
 
40
    KGGZMod::Module *m_mod;
 
41
    int m_fd;
 
42
    bool m_ggzsetup;
 
43
};
 
44
 
 
45
#endif // MAINWINDOW_H
 
46