You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tdegames/lskat/lskat/networkdlg.h

50 lines
1.6 KiB

/***************************************************************************
networkdlg.h - description
-------------------
copyright : (C) 2004 by Jakub Stachowski
email : qbast@go2.pl
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#ifndef NETWORKDLG_H
#define NETWORKDLG_H
#include <tqstring.h>
#include <dnssd/servicebrowser.h>
#include "networkdlgbase.h"
class NetworkDlg : public NetworkDlgBase
{
Q_OBJECT
public:
NetworkDlg(TQWidget* parent=NULL, const char* name=NULL);
~NetworkDlg();
void SetName(const TQString& name);
void SetHost(const TQString& host);
void SetPort(unsigned short port);
TQString QueryName() const;
unsigned short QueryPort() const;
TQString QueryHost() const;
protected:
virtual void toggleServerClient();
virtual void gameSelected(int nr);
private slots:
void gamesFound();
private:
DNSSD::ServiceBrowser* browser;
};
#endif // NETWORKDLG_H