libgnomevfsmm  2.26.0
resolve-handle.h
Go to the documentation of this file.
1 // -*- c++ -*-
2 // Generated by gtkmmproc -- DO NOT MODIFY!
3 #ifndef _LIBGNOMEVFSMM_RESOLVE_HANDLE_H
4 #define _LIBGNOMEVFSMM_RESOLVE_HANDLE_H
5 
6 
7 #include <glibmm.h>
8 
9 /* Copyright 2003 gnome-vfsmm Development Team
10  *
11  * This library is free software; you can redistribute it and/or
12  * modify it under the terms of the GNU Lesser General Public
13  * License as published by the Free Software Foundation; either
14  * version 2.1 of the License, or (at your option) any later version.
15  *
16  * This library is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19  * Lesser General Public License for more details.
20  *
21  * You should have received a copy of the GNU Lesser General Public
22  * License along with this library; if not, write to the Free
23  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
24  */
25 
26 #include <libgnomevfsmm/address.h>
27 #include <glibmm.h>
28 #include <libgnomevfs/gnome-vfs-resolve.h>
29 
30 
31 namespace Gnome
32 {
33 
34 namespace Vfs
35 {
36 
37 //The default constructor creates a null handle. Use resolve() before anything else.
39 {
40  public:
41 #ifndef DOXYGEN_SHOULD_SKIP_THIS
42  typedef ResolveHandle CppObjectType;
43  typedef GnomeVFSResolveHandle BaseObjectType;
44 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
45 
46 private:
47 
48 
49 public:
50  ResolveHandle();
52 
53 #ifdef GLIBMM_EXCEPTIONS_ENABLED
54  void resolve(const Glib::ustring& hostname);
55 #else
56  void resolve(const Glib::ustring& hostname, std::auto_ptr<Gnome::Vfs::exception>& error);
57 #endif //GLIBMM_EXCEPTIONS_ENABLED
58 
59  bool next_address(Address& address);
60  void reset_to_beginning();
61 
62  GnomeVFSResolveHandle* gobj() { return gobject_; }
63  const GnomeVFSResolveHandle* gobj() const { return gobject_; }
64  GnomeVFSResolveHandle** gobj_addr() { return &gobject_; }
65 
66 #ifndef DOXYGEN_SHOULD_SKIP_THIS
67  void assign_gobj(GnomeVFSResolveHandle* src);
68 #endif
69 
70 protected:
71  GnomeVFSResolveHandle* gobject_;
72 
73 private:
75  ResolveHandle& operator=(const ResolveHandle&);
76 
77 
78 };
79 
80 } // namespace Vfs
81 } // namespace Gnome
82 
83 
84 #endif /* _LIBGNOMEVFSMM_RESOLVE_HANDLE_H */
85 
GnomeVFSResolveHandle ** gobj_addr()
Definition: resolve-handle.h:64
Definition: address.h:36
const GnomeVFSResolveHandle * gobj() const
Definition: resolve-handle.h:63
GnomeVFSResolveHandle * gobj()
Definition: resolve-handle.h:62
bool next_address(Address &address)
Definition: address.h:42
Definition: resolve-handle.h:38
GnomeVFSResolveHandle * gobject_
Definition: resolve-handle.h:71
void resolve(const Glib::ustring &hostname)