summaryrefslogtreecommitdiffstats
path: root/lskat/lskat/networkdlg.h
blob: 6efccd2f332ebf8017a3c72366aa4f85f4e256cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/***************************************************************************
                         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