[glibmm] Gio::ApplicationCommandLine: Added some methods.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glibmm] Gio::ApplicationCommandLine: Added some methods.
- Date: Thu, 21 Mar 2013 09:59:45 +0000 (UTC)
commit ee09e7a688fe5e67517a68aff1351684d8511b99
Author: Murray Cumming <murrayc murrayc com>
Date: Thu Mar 21 10:58:52 2013 +0100
Gio::ApplicationCommandLine: Added some methods.
* gio/src/applicationcommandline.hg:
Added get_stdin() and create_file_for_arg(),
wrapping new C functions.
ChangeLog | 8 ++++++++
gio/src/applicationcommandline.hg | 8 ++++++++
2 files changed, 16 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index b2d047a..091386f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
2013-03-21 Murray Cumming <murrayc murrayc com>
+ Gio::ApplicationCommandLine: Added some methods.
+
+ * gio/src/applicationcommandline.hg:
+ Added get_stdin() and create_file_for_arg(),
+ wrapping new C functions.
+
+2013-03-21 Murray Cumming <murrayc murrayc com>
+
Regenerated the -signals.defs files.
* gio/src/gio_signals.defs: Regenerated using
diff --git a/gio/src/applicationcommandline.hg b/gio/src/applicationcommandline.hg
index c8311b1..3404613 100644
--- a/gio/src/applicationcommandline.hg
+++ b/gio/src/applicationcommandline.hg
@@ -15,6 +15,8 @@
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+#include <giomm/file.h>
+#include <giomm/inputstream.h>
#include <glibmm/object.h>
#include <glibmm/variant.h>
@@ -63,6 +65,10 @@ public:
_WRAP_METHOD(char** get_arguments(int& argc) const, g_application_command_line_get_arguments)
+ _WRAP_METHOD(Glib::RefPtr<InputStream> get_stdin(), g_application_command_line_get_stdin, refreturn)
+ _WRAP_METHOD(Glib::RefPtr<const InputStream> get_stdin() const, g_application_command_line_get_stdin,
refreturn, constversion)
+
+
//We use std::string instead of ustring because the C documentation says that it may be non-UTF-8 data:
_WRAP_METHOD(std::string get_cwd() const, g_application_command_line_get_cwd)
@@ -98,6 +104,8 @@ public:
*/
void printerr(const Glib::ustring& message);
_IGNORE(g_application_command_line_printerr)
+
+ _WRAP_METHOD(Glib::RefPtr<File> create_file_for_arg(const Glib::ustring& arg) const,
g_application_command_line_create_file_for_arg)
};
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]