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

transfer-progress.h

Go to the documentation of this file.
00001 // -*- c++ -*-
00002 // Generated by gtkmmproc -- DO NOT MODIFY!
00003 #ifndef _LIBGNOMEVFSMM_TRANSFER_PROGRESS_H
00004 #define _LIBGNOMEVFSMM_TRANSFER_PROGRESS_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-xfer.h>
00026 
00027 #include <libgnomevfsmm/enums.h>
00028 #include <libgnomevfsmm/types.h>
00029 
00030 
00031 namespace Gnome
00032 {
00033 
00034 namespace Vfs
00035 {
00036 
00037 namespace Transfer
00038 {
00039 
00040 class ProgressInfo
00041 {
00042   public:
00043 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00044   typedef ProgressInfo CppObjectType;
00045   typedef GnomeVFSXferProgressInfo BaseObjectType;
00046 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
00047 
00048 private:
00049 
00050   
00051 public:
00052   ProgressInfo();
00053   ProgressInfo(GnomeVFSXferProgressInfo* src);
00054   ~ProgressInfo();
00055 
00056   // Test whether this is a valid instance.
00057   operator bool() const;
00058 
00059   GnomeVFSXferProgressInfo*       gobj()       { return gobject_; }
00060   const GnomeVFSXferProgressInfo* gobj() const { return gobject_; }
00061 
00062 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00063   void assign_gobj(GnomeVFSXferProgressInfo* src);
00064 #endif
00065 
00066   //_GET_MEMBER() should really be able to do this automatically,
00067   // but it's not a problem because it has already been done.
00068 
00069   ProgressStatus get_status() const;
00070   Result get_vfs_status() const;
00071   Phase get_phase() const;
00072   Glib::ustring get_source_name() const;
00073   Glib::ustring get_target_name() const;
00074   long int get_file_index() const;
00075   long int get_total_files() const;
00076   FileSize get_total_bytes() const;
00077   FileSize get_file_size() const;
00078   FileSize get_bytes_copied() const;
00079   FileSize get_total_bytes_copied() const;
00080   Glib::ustring get_duplicate_name() const;
00081   int get_duplicate_count() const;
00082   bool get_top_level_item() const;
00083 
00084 protected:
00085   GnomeVFSXferProgressInfo* gobject_;
00086 
00087 private:
00088   ProgressInfo(const ProgressInfo&);
00089   ProgressInfo& operator=(const ProgressInfo&);
00090 
00091 
00092 };
00093 
00094 } // namespace Transfer
00095 } // namespace Vfs
00096 } // namespace Gnome
00097 
00098 #endif /* _LIBGNOMEVFSMM_TRANSFER_PROGRESS_H */
00099 

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