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

address.h

Go to the documentation of this file.
00001 // -*- c++ -*-
00002 // Generated by gtkmmproc -- DO NOT MODIFY!
00003 #ifndef _LIBGNOMEVFSMM_ADDRESS_H
00004 #define _LIBGNOMEVFSMM_ADDRESS_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 <libgnomevfs/gnome-vfs-address.h>
00026 
00027 #include <libgnomevfsmm/enums.h>
00028 #include <libgnomevfsmm/exception.h>
00029 
00030 
00031 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00032 extern "C" { typedef struct _GnomeVFSAddress GnomeVFSAddress; }
00033 #endif
00034 
00035 namespace Gnome
00036 {
00037 
00038 namespace Vfs
00039 {
00040 
00041 class Address
00042 {
00043   public:
00044 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00045   typedef Address CppObjectType;
00046   typedef GnomeVFSAddress BaseObjectType;
00047 
00048   static GType get_type() G_GNUC_CONST;
00049 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
00050 
00051   Address();
00052 
00053   explicit Address(GnomeVFSAddress* gobject, bool make_a_copy = true);
00054 
00055   Address(const Address& other);
00056   Address& operator=(const Address& other);
00057 
00058   ~Address();
00059 
00060   void swap(Address& other);
00061 
00063   GnomeVFSAddress*       gobj()       { return gobject_; }
00064 
00066   const GnomeVFSAddress* gobj() const { return gobject_; }
00067 
00069   GnomeVFSAddress* gobj_copy() const;
00070 
00071 protected:
00072   GnomeVFSAddress* gobject_;
00073 
00074 private:
00075 
00076 public:
00077   
00078 
00079 public:
00080   explicit Address(const Glib::ustring& address);
00081   explicit Address(guint32 ipv4_address);
00082   explicit Address(struct sockaddr* sa, int len);
00083 
00084   
00085   int get_family_type() const;
00086   
00087   Glib::ustring to_string() const;
00088   
00089   guint32 get_ipv4() const;
00090   //gtkmmproc error: gnome_vfs_address_get_sockaddr : method defs lookup failed (1)
00091 
00092   GnomeVFSAddress** gobj_addr()  { return &gobject_; }
00093   
00094 
00095 };
00096 
00097 } // namespace Vfs
00098 } // namespace Gnome
00099 
00100 
00101 namespace Gnome
00102 {
00103 
00104 namespace Vfs
00105 {
00106 
00111 inline void swap(Address& lhs, Address& rhs)
00112   { lhs.swap(rhs); }
00113 
00114 } // namespace Vfs
00115 
00116 } // namespace Gnome
00117 
00118 namespace Glib
00119 {
00120 
00126 Gnome::Vfs::Address wrap(GnomeVFSAddress* object, bool take_copy = false);
00127 
00128 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00129 template <>
00130 class Value<Gnome::Vfs::Address> : public Glib::Value_Boxed<Gnome::Vfs::Address>
00131 {};
00132 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
00133 
00134 } // namespace Glib
00135 
00136 #endif /* _LIBGNOMEVFSMM_ADDRESS_H */
00137 

Generated on Wed Aug 17 17:31:33 2005 for libgnomevfsmm by  doxygen 1.3.9.1