• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

libkdegames/kggzmod

KGGZMod::ModulePrivate

KGGZMod::ModulePrivate Class Reference

#include <module_private.h>

Inheritance diagram for KGGZMod::ModulePrivate:

Inheritance graph
[legend]

List of all members.


Detailed Description

Definition at line 35 of file module_private.h.


Public Types

enum  GGZEvents {
  msglaunch = 0, msgserver = 1, msgserverfd = 2, msgplayer = 3,
  msgseat = 4, msgspectatorseat = 5, msgchat = 6, msgstats = 7,
  msginfo = 8, msgrankings = 9
}

Public Slots

void slotGGZError ()
void slotGGZEvent ()

Signals

void signalError ()
void signalEvent (const KGGZMod::Event &event)
void signalNetwork (int fd)

Public Member Functions

void connect ()
void disconnect ()
Player * findPlayer (Player::Type seattype, const QString &name)
void insertPlayer (Player::Type seattype, const QString &name, int seat)
QString opcodeString (GGZEvents opcode)
QString requestString (Request::Type requestcode)
Player * self () const
void sendRequest (Request request)

Public Attributes

int m_fd
QSocketNotifier * m_gnotifier
int m_myseat
bool m_myspectator
QString m_name
KGGZRaw * m_net
QSocketNotifier * m_notifier
QList< Player * > m_players
int m_playerseats
QList< Player * > m_spectators
int m_spectatorseats
Module::State m_state

Member Enumeration Documentation

enum KGGZMod::ModulePrivate::GGZEvents

Enumerator:
msglaunch 
msgserver 
msgserverfd 
msgplayer 
msgseat 
msgspectatorseat 
msgchat 
msgstats 
msginfo 
msgrankings 

Definition at line 39 of file module_private.h.


Member Function Documentation

void ModulePrivate::connect (  ) 

Definition at line 480 of file module.cpp.

void ModulePrivate::disconnect (  ) 

Definition at line 514 of file module.cpp.

Player * ModulePrivate::findPlayer ( Player::Type  seattype,
const QString &  name 
)

Definition at line 546 of file module.cpp.

void ModulePrivate::insertPlayer ( Player::Type  seattype,
const QString &  name,
int  seat 
)

Definition at line 574 of file module.cpp.

QString ModulePrivate::opcodeString ( GGZEvents  opcode  ) 

Definition at line 191 of file module.cpp.

QString ModulePrivate::requestString ( Request::Type  requestcode  ) 

Definition at line 162 of file module.cpp.

Player * ModulePrivate::self (  )  const

Definition at line 527 of file module.cpp.

void ModulePrivate::sendRequest ( Request  request  ) 

Definition at line 103 of file module.cpp.

void KGGZMod::ModulePrivate::signalError (  )  [signal]

void KGGZMod::ModulePrivate::signalEvent ( const KGGZMod::Event &  event  )  [signal]

void KGGZMod::ModulePrivate::signalNetwork ( int  fd  )  [signal]

void ModulePrivate::slotGGZError (  )  [slot]

Definition at line 221 of file module.cpp.

void ModulePrivate::slotGGZEvent (  )  [slot]

Definition at line 228 of file module.cpp.


Member Data Documentation

int KGGZMod::ModulePrivate::m_fd

Definition at line 63 of file module_private.h.

QSocketNotifier* KGGZMod::ModulePrivate::m_gnotifier

Definition at line 69 of file module_private.h.

int KGGZMod::ModulePrivate::m_myseat

Definition at line 75 of file module_private.h.

bool KGGZMod::ModulePrivate::m_myspectator

Definition at line 76 of file module_private.h.

QString KGGZMod::ModulePrivate::m_name

Definition at line 62 of file module_private.h.

KGGZRaw* KGGZMod::ModulePrivate::m_net

Definition at line 70 of file module_private.h.

QSocketNotifier* KGGZMod::ModulePrivate::m_notifier

Definition at line 68 of file module_private.h.

QList<Player*> KGGZMod::ModulePrivate::m_players

Definition at line 65 of file module_private.h.

int KGGZMod::ModulePrivate::m_playerseats

Definition at line 72 of file module_private.h.

QList<Player*> KGGZMod::ModulePrivate::m_spectators

Definition at line 66 of file module_private.h.

int KGGZMod::ModulePrivate::m_spectatorseats

Definition at line 73 of file module_private.h.

Module::State KGGZMod::ModulePrivate::m_state

Definition at line 64 of file module_private.h.


The documentation for this class was generated from the following files:
  • module_private.h
  • module.cpp

libkdegames/kggzmod

Skip menu "libkdegames/kggzmod"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members

API Reference

Skip menu "API Reference"
  • kblackbox
  • kgoldrunner
  • kmahjongg
  • ksquares
  • libkdegames
  •   highscore
  •   kgame
  •   kggzgames
  •   kggzmod
  •   kggznet
  • libkmahjongg
Generated for API Reference by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal