libgnomevfsmm  2.26.0
transfer-progress.h
Go to the documentation of this file.
1 // -*- c++ -*-
2 // Generated by gtkmmproc -- DO NOT MODIFY!
3 #ifndef _LIBGNOMEVFSMM_TRANSFER_PROGRESS_H
4 #define _LIBGNOMEVFSMM_TRANSFER_PROGRESS_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 <libgnomevfs/gnome-vfs-xfer.h>
27 
28 #include <libgnomevfsmm/enums.h>
29 #include <libgnomevfsmm/types.h>
30 
31 
32 namespace Gnome
33 {
34 
35 namespace Vfs
36 {
37 
38 namespace Transfer
39 {
40 
42 {
43  public:
44 #ifndef DOXYGEN_SHOULD_SKIP_THIS
45  typedef ProgressInfo CppObjectType;
46  typedef GnomeVFSXferProgressInfo BaseObjectType;
47 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
48 
49 private:
50 
51 
52 public:
53  ProgressInfo();
54  ProgressInfo(GnomeVFSXferProgressInfo* src);
55  ~ProgressInfo();
56 
57  // Test whether this is a valid instance.
58  operator bool() const;
59 
60  GnomeVFSXferProgressInfo* gobj() { return gobject_; }
61  const GnomeVFSXferProgressInfo* gobj() const { return gobject_; }
62 
63 #ifndef DOXYGEN_SHOULD_SKIP_THIS
64  void assign_gobj(GnomeVFSXferProgressInfo* src);
65 #endif
66 
67  //_GET_MEMBER() should really be able to do this automatically,
68  // but it's not a problem because it has already been done.
69 
70  ProgressStatus get_status() const;
71  Result get_vfs_status() const;
72  Phase get_phase() const;
73  Glib::ustring get_source_name() const;
74  Glib::ustring get_target_name() const;
75  long int get_file_index() const;
76  long int get_total_files() const;
77  FileSize get_total_bytes() const;
78  FileSize get_file_size() const;
79  FileSize get_bytes_copied() const;
81  Glib::ustring get_duplicate_name() const;
82  int get_duplicate_count() const;
83  bool get_top_level_item() const;
84 
85 protected:
86  GnomeVFSXferProgressInfo* gobject_;
87 
88 private:
89  ProgressInfo(const ProgressInfo&);
90  ProgressInfo& operator=(const ProgressInfo&);
91 
92 
93 };
94 
95 } // namespace Transfer
96 } // namespace Vfs
97 } // namespace Gnome
98 
99 
100 #endif /* _LIBGNOMEVFSMM_TRANSFER_PROGRESS_H */
101 
Phase
Definition: enums.h:705
Glib::ustring get_duplicate_name() const
Glib::ustring get_source_name() const
Definition: address.h:36
Result
Definition: enums.h:96
ProgressStatus
Definition: enums.h:647
Glib::ustring get_target_name() const
GnomeVFSXferProgressInfo * gobject_
Definition: transfer-progress.h:86
Definition: transfer-progress.h:41
FileSize get_total_bytes_copied() const
GnomeVFSFileSize FileSize
Definition: types.h:29
GnomeVFSXferProgressInfo * gobj()
Definition: transfer-progress.h:60
const GnomeVFSXferProgressInfo * gobj() const
Definition: transfer-progress.h:61
ProgressStatus get_status() const