18 #ifndef _LIBGNOMEVFSMM_DNS_SD_H
19 #define _LIBGNOMEVFSMM_DNS_SD_H
24 #include <libgnomevfs/gnome-vfs-dns-sd.h>
56 typedef sigc::slot<void, BrowseHandle*, GnomeVFSDNSSDServiceStatus, const Service&>
BrowseSlot;
59 #ifdef GLIBMM_EXCEPTIONS_ENABLED
60 BrowseHandle*
browse(
const Glib::ustring& domain,
const Glib::ustring& type,
const BrowseSlot& slot);
62 BrowseHandle*
browse(
const Glib::ustring& domain,
const Glib::ustring& type,
const BrowseSlot& slot, std::auto_ptr<Gnome::Vfs::exception>& error);
63 #endif //GLIBMM_EXCEPTIONS_ENABLED
65 #ifdef GLIBMM_EXCEPTIONS_ENABLED
69 #endif //GLIBMM_EXCEPTIONS_ENABLED
81 #ifdef GLIBMM_EXCEPTIONS_ENABLED
82 ResolveHandle*
resolve(
const Glib::ustring& name,
const Glib::ustring& type,
const Glib::ustring& domain,
83 int timeout,
const ResolveSlot& slot);
85 ResolveHandle*
resolve(
const Glib::ustring& name,
const Glib::ustring& type,
const Glib::ustring& domain,
86 int timeout,
const ResolveSlot& slot, std::auto_ptr<Gnome::Vfs::exception>& error);
87 #endif //GLIBMM_EXCEPTIONS_ENABLED
89 #ifdef GLIBMM_EXCEPTIONS_ENABLED
92 void cancel_resolve(ResolveHandle* handle, std::auto_ptr<Gnome::Vfs::exception>& error);
93 #endif //GLIBMM_EXCEPTIONS_ENABLED
99 #ifdef GLIBMM_EXCEPTIONS_ENABLED
100 void browse_sync(
const Glib::ustring& domain,
const Glib::ustring& type,
int timeout_msec, std::list<Service>& services);
102 void browse_sync(
const Glib::ustring& domain,
const Glib::ustring& type,
int timeout_msec, std::list<Service>& services, std::auto_ptr<Gnome::Vfs::exception>& error);
103 #endif //GLIBMM_EXCEPTIONS_ENABLED
106 #ifdef GLIBMM_EXCEPTIONS_ENABLED
107 void resolve_sync(
const Glib::ustring& name,
const Glib::ustring& type,
const Glib::ustring& domain,
108 int timeout_msec, Glib::ustring& host,
int& port, ServiceOptions& options);
110 void resolve_sync(
const Glib::ustring& name,
const Glib::ustring& type,
const Glib::ustring& domain,
111 int timeout_msec, Glib::ustring& host,
int& port, ServiceOptions& options, std::auto_ptr<Gnome::Vfs::exception>& error);
112 #endif //GLIBMM_EXCEPTIONS_ENABLED
116 #ifdef GLIBMM_EXCEPTIONS_ENABLED
119 ListHandleStrings
list_browse_domains_sync(
const Glib::ustring& domain,
int timeout_msec, std::auto_ptr<Gnome::Vfs::exception>& error);
120 #endif //GLIBMM_EXCEPTIONS_ENABLED
void cancel_resolve(ResolveHandle *handle)
sigc::slot< void, ResolveHandle *, Result, const Service &, const Glib::ustring &, int, const ServiceOptions & > ResolveSlot
For instance, void on_resolve(ResolveHandle* handle, Result result, const Service& service...
Definition: dns-sd.h:78
Glib::ListHandle< Glib::ustring > ListHandleStrings
Definition: dns-sd.h:114
void stop_browse(BrowseHandle *handle)
Glib::ustring name
Definition: dns-sd.h:48
std::map< Glib::ustring, Glib::ustring > ServiceOptions
Definition: dns-sd.h:71
Glib::ustring domain
Definition: dns-sd.h:50
void resolve_sync(const Glib::ustring &name, const Glib::ustring &type, const Glib::ustring &domain, int timeout_msec, Glib::ustring &host, int &port, ServiceOptions &options)
sigc::slot< void, BrowseHandle *, GnomeVFSDNSSDServiceStatus, const Service & > BrowseSlot
For instance, void on_browse(BrowseHandle* handle, GnomeVFSDNSSDServiceStatus status, const Service& service);.
Definition: dns-sd.h:56
void browse_sync(const Glib::ustring &domain, const Glib::ustring &type, int timeout_msec, std::list< Service > &services)
struct GnomeVFSDNSSDBrowseHandle BrowseHandle
Definition: dns-sd.h:41
ListHandleStrings list_browse_domains_sync(const Glib::ustring &domain, int timeout_msec)
Glib::ustring type
Definition: dns-sd.h:49
ResolveHandle * resolve(const Glib::ustring &name, const Glib::ustring &type, const Glib::ustring &domain, int timeout, const ResolveSlot &slot)
ListHandleStrings get_default_browse_domains()
Glib::ListHandle< Service > ListHandleServices
Definition: dns-sd.h:96
struct GnomeVFSDNSSDResolveHandle ResolveHandle
Definition: dns-sd.h:42
BrowseHandle * browse(const Glib::ustring &domain, const Glib::ustring &type, const BrowseSlot &slot)