Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

resolve-handle.h

Go to the documentation of this file.
00001 // -*- c++ -*-
00002 // Generated by gtkmmproc -- DO NOT MODIFY!
00003 #ifndef _LIBGNOMEVFSMM_RESOLVE_HANDLE_H
00004 #define _LIBGNOMEVFSMM_RESOLVE_HANDLE_H
00005 
00006 #include <glibmm.h>
00007 
00008 /* Copyright 2003 gnome-vfsmm Development Team
00009  *
00010  * This library is free software; you can redistribute it and/or
00011  * modify it under the terms of the GNU Library General Public
00012  * License as published by the Free Software Foundation; either
00013  * version 2 of the License, or (at your option) any later version.
00014  *
00015  * This library is distributed in the hope that it will be useful,
00016  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00017  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00018  * Library General Public License for more details.
00019  *
00020  * You should have received a copy of the GNU Library General Public
00021  * License along with this library; if not, write to the Free
00022  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00023  */
00024 
00025 #include <libgnomevfsmm/address.h>
00026 #include <glibmm.h>
00027 #include <libgnomevfs/gnome-vfs-resolve.h>
00028 
00029 
00030 namespace Gnome
00031 {
00032 
00033 namespace Vfs
00034 {
00035 
00036 //The default constructor creates a null handle. Use resolve() before anything else.
00037 class ResolveHandle
00038 {
00039   public:
00040 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00041   typedef ResolveHandle CppObjectType;
00042   typedef GnomeVFSResolveHandle BaseObjectType;
00043 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
00044 
00045 private:
00046 
00047 
00048 public:
00049   ResolveHandle();
00050   ~ResolveHandle();
00051 
00052   void resolve(const Glib::ustring& hostname);
00053 
00054   bool next_address(Address& address);
00055   void reset_to_beginning();
00056 
00057   GnomeVFSResolveHandle*       gobj()       { return gobject_; }
00058   const GnomeVFSResolveHandle* gobj() const { return gobject_; }
00059   GnomeVFSResolveHandle**      gobj_addr()  { return &gobject_; }
00060 
00061 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00062   void assign_gobj(GnomeVFSResolveHandle* src);
00063 #endif
00064 
00065 protected:
00066   GnomeVFSResolveHandle* gobject_;
00067 
00068 private:
00069   ResolveHandle(const ResolveHandle&);
00070   ResolveHandle& operator=(const ResolveHandle&);
00071 
00072 
00073 };
00074 
00075 } // namespace Vfs
00076 } // namespace Gnome
00077 
00078 
00079 #endif /* _LIBGNOMEVFSMM_RESOLVE_HANDLE_H */
00080 

Generated on Mon Mar 7 11:19:50 2005 for libgnomevfsmm by  doxygen 1.3.9.1