# dnssd Library API Documentation

Overview | Class Hierarchy | Classes | Classes (annotated) | Members | Namespaces | Source Files

# remoteservice.h

    00001 /* This file is part of the KDE project
    00002  *
    00003  * Copyright (C) 2004 Jakub Stachowski <qbast@go2.pl>
    00004  *
    00005  * This library is free software; you can redistribute it and/or
    00006  * modify it under the terms of the GNU Library General Public
    00007  * License as published by the Free Software Foundation; either
    00008  * version 2 of the License, or (at your option) any later version.
    00009  *
    00010  * This library is distributed in the hope that it will be useful,
    00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
    00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    00013  * Library General Public License for more details.
    00014  *
    00015  * You should have received a copy of the GNU Library General Public License
    00016  * along with this library; see the file COPYING.LIB.  If not, write to
    00017  * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
    00018  * Boston, MA 02111-1307, USA.
    00019  */
    00020
    00021 #ifndef DNSSDREMOTESERVICE_H
    00022 #define DNSSDREMOTESERVICE_H
    00023
    00024 #include <qobject.h>
    00025 #include <dnssd/servicebase.h>
    00026
    00027 class QDataStream;
    00028 namespace DNSSD
    00029 {
    00030 class RemoteServicePrivate;
    00031
    00041 class KDNSSD_EXPORT RemoteService : public QObject, public ServiceBase
    00042 {
    00043     Q_OBJECT
    00044 public:
    00045     typedef KSharedPtr<RemoteService> Ptr;
    00046
    00052     RemoteService(const QString& label);
    00053
    00057     RemoteService(const QString& name,const QString& type,const QString& domain);
    00058
    00059     virtual ~RemoteService();
    00060
    00066     void resolveAsync();
    00067
    00073     bool resolve();
    00074
    00078     bool isResolved() const;
    00079
    00080 signals:
    00086     void resolved(bool);
    00087
    00088 protected:
    00089     virtual void virtual_hook(int id, void *data);
    00090     virtual void customEvent(QCustomEvent* event);
    00091 private:
    00092     void resolveError();
    00093     void resolved(const char *host, unsigned short port, unsigned short txtlen,
    00094         const char* txtRecord);
    00095     RemoteServicePrivate *d;
    00096
    00097     friend KDNSSD_EXPORT QDataStream & operator<< (QDataStream & s, const RemoteService & a);
    00098     friend KDNSSD_EXPORT QDataStream & operator>> (QDataStream & s, RemoteService & a);
    00099
    00100 };
    00101
    00102 }
    00103
    00104 #endif

This file is part of the documentation for dnssd Library Version 3.4.1.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Sat Jun 11 20:28:18 2005 by doxygen 1.4.1 written by Dimitri van Heesch, © 1997-2003