Main Page | Modules | Namespace List | Class Hierarchy | Data Structures | Directories | File List | Namespace Members | Data Fields | Related Pages

server.h

00001 // -*- Mode: C++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
00002 /* server.h: Qt wrapper for DBusServer
00003  *
00004  * Copyright (C) 2003  Zack Rusin <zack@kde.org>
00005  *
00006  * Licensed under the Academic Free License version 2.1
00007  *
00008  * This program is free software; you can redistribute it and/or modify
00009  * it under the terms of the GNU General Public License as published by
00010  * the Free Software Foundation; either version 2 of the License, or
00011  * (at your option) any later version.
00012  *
00013  * This program is distributed in the hope that it will be useful,
00014  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00015  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00016  * GNU General Public License for more details.
00017  *
00018  * You should have received a copy of the GNU General Public License
00019  * along with this program; if not, write to the Free Software
00020  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00021  *
00022  */
00023 #ifndef DBUS_QT_SERVER_H
00024 #define DBUS_QT_SERVER_H
00025 
00026 #include <qobject.h>
00027 
00028 #include "dbus/dbus.h"
00029 
00030 namespace DBusQt
00031 {
00032   class Connection;
00033   class Server : public QObject
00034   {
00035     Q_OBJECT
00036   public:
00037     Server( const QString& addr = QString::null, QObject *parent=0 );
00038     ~Server();
00039 
00040     bool isConnected() const;
00041     QString address() const;
00042 
00043   public slots:
00044     void listen( const QString& addr );
00045     void disconnect();
00046   signals:
00047     void newConnection( Connection* );
00048 
00049   private:
00050     void init( const QString& addr );
00051   private:
00052     struct Private;
00053     Private *d;
00054   };
00055 }
00056 
00057 #endif

Generated on Tue Sep 13 01:28:08 2005 for D-BUS by  doxygen 1.4.4