Main Page | Modules | Namespace List | Class Hierarchy | Class List | Namespace Members | Class Members

VIEW::ServerPreferences Class Reference
[QT Dialogs]

Preferences tab for the Server. More...

#include <serverPreferences.h>

Inheritance diagram for VIEW::ServerPreferences:

VIEW::PreferencesEntry List of all members.

Public Member Functions

Constructors
 ServerPreferences (QWidget *parent=NULL, const char *name="ServerPreferences") throw ()
 Default Constructor.
Destructors
virtual ~ServerPreferences () throw ()
 Destructor.
Accessors: inspectors and mutators
int getPort () throw ()
 Access the port the Server tries to connect to.
bool getServerStatus () throw ()
 Check the server status.

Detailed Description

Preferences tab for the Server.

It will be created by the Server object in the Server::initializePreferencesTab and will be inserted into the Preferences dialog by the MainControl. There are currently two settings: The port on which the data will be received and if the server will accept connections.
This is one of the view dialogs, that is not implemented by an ui-file!


Constructor & Destructor Documentation

VIEW::ServerPreferences::ServerPreferences QWidget *  parent = NULL,
const char *  name = "ServerPreferences"
throw ()
 

Default Constructor.

The attributs of this serverPreferences are:

  • server port set to VIEW_DEFAULT_PORT
  • server status set to not accept clients

virtual VIEW::ServerPreferences::~ServerPreferences  )  throw () [virtual]
 

Destructor.


Member Function Documentation

int VIEW::ServerPreferences::getPort  )  throw ()
 

Access the port the Server tries to connect to.

Returns:
int the port number of this serverPreferences

bool VIEW::ServerPreferences::getServerStatus  )  throw ()
 

Check the server status.

If the server status is set to true than the Server will try to accepts clients. If set to false the Server will not accept clients.

Returns:
bool true the Server will try to accept clients, false the Server will not accept clients.