summaryrefslogtreecommitdiff
path: root/gio/src/proxyresolver.hg
diff options
context:
space:
mode:
authorMurray Cumming <murrayc@murrayc.com>2010-09-02 23:43:04 +0200
committerMurray Cumming <murrayc@murrayc.com>2010-09-02 23:43:04 +0200
commitdd1b61233d7b46071e319aad57a883dd4db608a6 (patch)
tree40010255a5c805f1d59bc979be91cd87af07c230 /gio/src/proxyresolver.hg
parentfaf9cb3c4f983a37b14f86ae41d5d1144d78d48e (diff)
downloadglibmm-dd1b61233d7b46071e319aad57a883dd4db608a6.tar.gz
giomm: Added Proxy, ProxyAddress and ProxyResolver.
* gio/src/proxy.[hg|ccg]: * gio/src/proxyaddress.[hg|ccg]: * gio/src/proxyresolver.[hg|ccg]: New files, not complete.
Diffstat (limited to 'gio/src/proxyresolver.hg')
-rw-r--r--gio/src/proxyresolver.hg67
1 files changed, 67 insertions, 0 deletions
diff --git a/gio/src/proxyresolver.hg b/gio/src/proxyresolver.hg
new file mode 100644
index 00000000..75336b65
--- /dev/null
+++ b/gio/src/proxyresolver.hg
@@ -0,0 +1,67 @@
+// -*- Mode: C++; indent-tabs-mode: nil; c-basic-offset: 2 -*-
+
+/* Copyright (C) 2010 The gtkmm Development Team
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free
+ * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ */
+
+#include <glibmm/error.h>
+#include <glibmm/interface.h>
+#include <giomm/asyncresult.h>
+#include <giomm/cancellable.h>
+//#include <giomm/error.h> //Because this is thrown by some of these methods.
+
+_DEFS(giomm,gio)
+_PINCLUDE(glibmm/private/interface_p.h)
+
+#ifndef DOXYGEN_SHOULD_SKIP_THIS
+typedef struct _GProxyResolverInterface GProxyResolverInterface;
+#endif /* DOXYGEN_SHOULD_SKIP_THIS */
+
+namespace Gio
+{
+
+
+/** TODO: Documentation
+ *
+ * @newin{2,26}
+ */
+class ProxyResolver : public Glib::Interface
+{
+ _CLASS_INTERFACE(ProxyResolver, GProxyResolver, G_PROXY_RESOLVER, GProxyResolverInterface)
+
+public:
+
+ _WRAP_METHOD(static Glib::RefPtr<ProxyResolver> get_default(), g_proxy_resolver_get_default)
+
+ _WRAP_METHOD(bool is_supported() const, g_proxy_resolver_is_supported)
+
+ //TODO: Use std::string instead of ustring (StringArrayHandle uses ustring)?:
+#m4 _CONVERSION(`gchar**',`Glib::StringArrayHandle',`Glib::StringArrayHandle($3, Glib::OWNERSHIP_DEEP)')
+ _WRAP_METHOD(Glib::StringArrayHandle lookup(const Glib::ustring& uri,
+ const Glib::RefPtr<Cancellable>& cancellable), g_proxy_resolver_lookup, errthrow)
+
+ //TODO: Documentation
+ Glib::StringArrayHandle lookup(const Glib::ustring& uri);
+
+ //TODO: _WRAP_METHOD(void lookup_async(const std::string& uri, const Glib::RefPtr<Cancellable>& cancellable, const SlotAsyncReady& slot), g_proxy_resolver_lookup_async)
+
+ _WRAP_METHOD(Glib::StringArrayHandle lookup_finish(const Glib::RefPtr<AsyncResult>& result), g_proxy_resolver_lookup_finish, errthrow)
+
+};
+
+
+} // namespace Gio
+