diff options
author | Murray Cumming <murrayc@murrayc.com> | 2008-02-26 10:47:47 +0000 |
---|---|---|
committer | Murray Cumming <murrayc@src.gnome.org> | 2008-02-26 10:47:47 +0000 |
commit | 5bdad5e2fb7dcff1dc35555a6d89c463cf1b98cb (patch) | |
tree | 9d234def164eed20a137deea41dec39087b959bc /gio/src/file.ccg | |
parent | ccbc85e0f926df1ba0784699e2d49f240beb286d (diff) | |
download | glibmm-5bdad5e2fb7dcff1dc35555a6d89c463cf1b98cb.tar.gz |
2.15.7:
2008-02-26 Murray Cumming <murrayc@murrayc.com>
* gio/src/gio_methods.defs: Regenerated.
* gio/src/file.ccg:
* gio/src/file.hg: Added query_filesystem_info_async() and
query_filesystem_info_finish() because these were added to the C API.
* gio/src/themedicon.hg: Added append_name() because this was added to
the C API.
svn path=/trunk/; revision=625
Diffstat (limited to 'gio/src/file.ccg')
-rw-r--r-- | gio/src/file.ccg | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/gio/src/file.ccg b/gio/src/file.ccg index 1a7424ac..6692789d 100644 --- a/gio/src/file.ccg +++ b/gio/src/file.ccg @@ -395,6 +395,38 @@ Glib::RefPtr<FileInfo> File::query_filesystem_info(const std::string& attributes return retvalue; } +void +File::query_filesystem_info_async(const SlotAsyncReady& slot, const Glib::RefPtr<Cancellable>& cancellable, const std::string& attributes, int io_priority) const +{ + // Create a copy of the slot. + // A pointer to it will be passed through the callback's data parameter + // and deleted in the callback. + SlotAsyncReady* slot_copy = new SlotAsyncReady(slot); + + g_file_query_filesystem_info_async(const_cast<GFile*>(gobj()), + attributes.c_str(), + io_priority, + cancellable->gobj(), + &SignalProxy_async_callback, + slot_copy); +} + +void +File::query_filesystem_info_async(const SlotAsyncReady& slot, const std::string& attributes, int io_priority) const +{ + // Create a copy of the slot. + // A pointer to it will be passed through the callback's data parameter + // and deleted in the callback. + SlotAsyncReady* slot_copy = new SlotAsyncReady(slot); + + g_file_query_filesystem_info_async(const_cast<GFile*>(gobj()), + attributes.c_str(), + io_priority, + NULL, // cancellable + &SignalProxy_async_callback, + slot_copy); +} + #ifdef GLIBMM_EXCEPTIONS_ENABLED Glib::RefPtr<FileEnumerator> File::enumerate_children(const Glib::RefPtr<Cancellable>& cancellable, const std::string& attributes, FileQueryInfoFlags flags) #else |