switch glibmm/giomm to 2.18

git-svn-id: svn://localhost/ardour2/branches/3.0@5306 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis
2009-07-02 16:00:45 +00:00
parent e6c240a691
commit a73d15e989
423 changed files with 142369 additions and 23979 deletions

View File

@@ -1,9 +1,31 @@
2.20.0
2.18.2:
2009-03-15 Jonathon Jongsma <jjongsma@gnome.org>
2009-03-23 Daniel Elstner <danielk@openismus.com>
* configure.in: bump rev to 2.20.0
* NEWS: update for release
* glib/src/keyfile.{ccg,hg}: Conditionalize all exception-handling
code in order to fix the build with --disable-api-exceptions.
* glib/src/regex.hg: ditto,
* gio/src/appinfo.ccg: ditto,
* gio/src/file.{ccg,hg}: ditto,
* gio/src/outputstream.ccg: ditto,
* examples/keyfile/main.cc: ditto,
* examples/regex/main.cc: ditto,
* tests/giomm_ioerror/main.cc: ditto,
* tests/giomm_simple/main.cc: ditto.
2009-03-19 José Alburquerque <jaalburqu@svn.gnome.org>
* tools/m4/class_gobject.m4: Added _CUSTOM_CTOR_CAST to _CLASS_GOBJECT
for classes that need to include custom code in their cast and
construct_params constructors as is done with _CLASS_GTKOBJECT.
Bug #574861.
2009-03-18 José Alburquerque <jaalburqu@svn.gnome.org>
* tools/m4/base.m4: Modified _GET_TYPE_FUNC() to properly work with
types like GtkFOOBar producing, for example, gtk_foo_bar_get_type()
instead of gtk_fo_obar_get_type().
Bug #575870.
2009-03-09 Daniel Elstner <danielk@openismus.com>
@@ -11,232 +33,32 @@
Replace nested double quotes in the docs string by single quotes
to ease the parsing pain of gmmproc.
2.19.8:
2009-02-23 Murray Cumming <murrayc@murrayc.com>
* gio/src/gio_enums.defs: Regenerated, adding
FILE_CREATE_REPLACE_DESTINATION and Error::TOO_MANY_OPEN_FILES.
* gio/src/gio_signals.defs: Regenerated.
* go/src/mountoperation: Added the aborted signal.
2009-02-22 Murray Cumming <murrayc@murrayc.com>
* gio/src/drive.hg: Remove extra ;s on the new signalsl, to avoid
compiler warnings.
2.19.3
2009-02-20 Jonathon Jongsma <jonathon@quotidian.org>
* docs/reference/Makefile.am: fix distcheck issue
2009-02-20 Jonathon Jongsma <jonathon@quotidian.org>
* NEWS:
* configure.in: update for 2.19.3 release
2009-02-17 Daniel Elstner <danielk@openismus.com>
* glib/glibmm/debug.h: Remove mention of G_GNUC_PRETTY_FUNCTION in
comment because a code maintenance tool of André Klapper complained
about it.
* glib/glibmm/objectbase.cc: Likewise.
2009-02-06 Murray Cumming <murrayc@murrayc.com>
* gio/src/gio_methods.defs: Regenerated.
* gio/src/filterinputstream.hg: Added get/set_close_base_stream().
* gio/src/filteroutputstream.hg: Added get/set_close_base_stream().
* gio/src/unixinputstream.hg: Added get_fd() and get/set_close_fd().
* gio/src/unixoutputstream.hg: Added get_fd() and get/set_close_fd().
* gio/src/datainputstream.[hg|ccg]: Added read_until_async(),
read_until_finish(), read_line_async() and read_line_finish().
Added documentation for read_until() and read_line().
2009-02-06 Murray Cumming <murrayc@murrayc.com>
* tools/extra_defs_gen/generate_defs_gio.cc: Added unix types.
* gio/src/gio_signals.defs: Regenerated.
* gio/src/bufferedinputstream.hg: Added buffer_size property.
* gio/src/bufferedoutputstream.hg: Added buffer_size and auto_grow
properties.
* gio/src/datainputstream.hg: Added byte_order and newline_type
properties.
* gio/src/dataoutputstream.hg: Added byte_order property.
* gio/src/filterinputstream.hg: Added close_base_ stream property.
* gio/src/filteroutputstream.hg:
* gio/src/unixinputstream.hg: Added fd and close_fd properties.
* gio/src/unixoutputstream.hg: Added fd and close_fd properties.
2009-02-05 Theppitak Karoonboonyanan <thep@linux.thai.net>
* docs/reference/Doxyfile.in:
* docs/reference/Makefile.am: Allow glibmm to build outside the source
tree. Bug #570216
2009-02-05 Murray Cumming <murrayc@murrayc.com>
* glib/src/regex.hg: create(): For the version when
GLIBMM_EXCEPTIONS_ENABLED is not defined, do not specify default
parameter values because we have an extra error parameter.
Bug #570648 (Bernd Buschinski)
2009-01-20 Deng Xiyue <manphiz@gmail.com>
* Change license header to mention Lesser General Public License
version 2.1 instead of Library General Public License, to be
consistent with COPYING.
2.19.2:
2009-01-19 Tao Wang <dancefire@gmail.com>
* glib/src/nodetree.hg: Do not use a non-ASCII dash character, to
avoid the MSVC++ warning C4819 with Visual Studio 2008.
Bug #568072
2009-01-09 Murray Cumming <murrayc@murrayc.com>
2009-01-11 José Alburquerque <jaalburqu@svn.gnome.org>
* glib/glibmm/wrap.h: wrap_auto_interface<>(): Add a warning to give a
clue when the dynamic_cast fails, for instance if you are doing some
incorrect multiple inheritance.
* tools/extra_defs_gen/generate_extra_defs.cc:
* tools/extra_defs_gen/generate_extra_defs.h: Undid patch from bug
#562810 (José Alburquerque). All the confusion about gstreamermm
packaging (see bug #565454) led to suggested patch which will really
probably never be used.
2009-01-08 Daniel Elstner <danielk@openismus.com>
* glib/glibmm/ustring.h (ustring::compose): Add an overload which
takes only a format string and no arguments to be substituted. It
is essentially a null-operation as long as the format string does
not contain any invalid argument references. Bug #506394.
2009-01-06 Jonathon Jongsma <jonathon@quotidian.org>
2009-01-06 Jonathon Jongsma <jonathon@quotidian.org>
* glib/src/uriutils.ccg: fix a memory leak in the uri utility functions
caused by not freeing the returned C string. Bug #566845 (Jason Kasper)
caused by not freeing the returned C string. Bug #566845 (Jason Kasper)
2009-01-03 Murray Cumming <murrayc@murrayc.com>
2008-12-16 José Alburquerque <jaalburqu@svn.gnome.org>
* gio/src/file.ccg: Added implementation of the
make_directory_with_parents() method overload that takes no parameter.
Bug #566003 (Philip Belemezov).
2008-12-24 Murray Cumming <murrayc@murrayc.com>
* glib/src/spawn.ccg:
* glib/src/spawn.hg: Added Glib::spawn_*() alternative API for when
GLIBMM_EXCEPTIONS_ENABLED is not enabled (when compiling without
C++ exceptions.)
Bug #565487
(Jonathon Jongsma)
2008-12-14 Jonathon Jongsma <jonathon@quotidian.org>
* NEWS: update for follow-up release
2008-12-14 Jonathon Jongsma <jonathon@quotidian.org>
* configure.in: bump to 2.19.1
2008-12-14 Jonathon Jongsma <jonathon@quotidian.org>
* gio/src/drive.hg: Wrap new signals 'changed', 'disconnected', and
'eject_button' with the no_default_handler option so that we don't break ABI
by adding new virtual functions
=== 2.19.0 ===
2008-12-12 Jonathon Jongsma <jonathon@quotidian.org>
* NEWS: update for release
2008-12-12 Jonathon Jongsma <jonathon@quotidian.org>
* tests/giomm_ioerror/main.cc:
* tests/giomm_simple/main.cc: use common filenames so that people other than
murrayc can run the tests without errors
2008-12-12 Jonathon Jongsma <jonathon@quotidian.org>
* gio/src/memoryoutputstream.hg: Fix a copy-paste error where I accidentally
left a FilterOutputStream type in
2008-12-02 Jonathon Jongsma <jonathon@quotidian.org>
* gio/src/memoryoutputstream.ccg:
* gio/src/memoryoutputstream.hg: Added MemoryOutputStream, but needs a bit
of work on the constructor yet
2008-12-02 Jonathon Jongsma <jonathon@quotidian.org>
* gio/src/Makefile_list_of_hg.am_fragment:
* gio/src/emblem.ccg:
* gio/src/emblem.hg:
* gio/src/emblemedicon.ccg:
* gio/src/emblemedicon.hg:
* tools/m4/convert_gio.m4: add Emblem and EmblemedIcon classes
2008-12-02 Jonathon Jongsma <jonathon@quotidian.org>
* tools/m4/convert_glib.m4: add a conversion for Glib::KeyFile&
* gio/src/desktopappinfo.hg: wrap the new create_from_keyfile() function.
In addition, I removed the _WRAP_CTOR and _WRAP_CREATE usage from the
desktop_id constructor and wrapped all of the static create* functions using
_WRAP_METHOD since these functions do a lot of error handling and can fail
to create an object under some circumstances.
2008-12-02 Jonathon Jongsma <jonathon@quotidian.org>
* docs/reference/Makefile.am: rebuild docs when a giomm header file is
changed (similar to how we handle glibmm)
2008-12-02 Jonathon Jongsma <jonathon@quotidian.org>
* gio/giomm/contenttype.cc:
* gio/giomm/contenttype.h: add content_type_from_mime_type()
2008-12-02 Jonathon Jongsma <jonathon@quotidian.org>
Wrap a bunch of new / missed API
* gio/src/appinfo.hg:
* gio/src/appinfo.ccg: AppInfo::get_commandline(), can_delete(), do_delete()
(need better name?), reset_type_associations(), launch_default_for_uri()
* gio/src/cancellable.hg: add commented-out make_pollfd() since I'm not sure
yet whether it's useful with the C++ API or not
* gio/src/drive.hg: Added signals 'changed', 'disconnected', and
'eject_button'
* gio/src/icon.hg:
* gio/src/icon.ccg: Added Icon::create(string) and Icon::to_string()
* gio/src/mount.hg:
* gio/src/mount.ccg: Added Mount::guess_content_type_sync(), is_shadowed(),
shadow(), and unshadow()
2008-12-01 Jonathon Jongsma <jonathon@quotidian.org>
* configure.in: bump requirement to glib 2.19.x
* gio/src/gio_docs.xml:
* gio/src/gio_enums.defs:
* gio/src/gio_methods.defs:
* gio/src/gio_signals.defs:
* glib/src/glib_docs.xml:
* glib/src/glib_enums.defs:
* glib/src/glib_functions.defs:
* glib/src/gmodule_enums.defs:
* glib/src/gmodule_functions.defs:
* glib/src/gobject_enums.defs:
* glib/src/gobject_functions.defs: update the .defs to start on 2.19.x API
2008-12-01 Jonathon Jongsma <jonathon@quotidian.org>
* Makefile.am: add some convenience rules for generating the .defs files
2008-09-22 Dave Foster <daf@minuslab.net>
* glib/glibmm/main.h:
* glib/glibmm/main.cc: Added SignalIdle::connect_once,
SignalTimeout::connect_once, and SignalTimeout::connect_seconds_once.
* tools/extra_defs_gen/generate_extra_defs.cc:
* tools/extra_defs_gen/generate_extra_defs.h: Modify extra defs
generation utility to accept custom defined function to determine if
GType is a pointer.
Bug #562810.
2008-12-10 Przemysław Grzegorczyk <pgrzegorczyk@gmail.com>
@@ -253,6 +75,8 @@
* glib/src/nodetree.hg: Fix -Wshadow warnings. Bug #555743.
2.18.1:
2008-10-20 Jonathon Jongsma <jonathon@quotidian.org>
* NEWS:

View File

@@ -1,6 +1,6 @@
ACLOCAL_AMFLAGS = -I scripts
SUBDIRS = tools glib scripts
SUBDIRS = tools glib gio scripts
DIST_SUBDIRS = $(SUBDIRS)
EXTRA_DIST = build_shared/Makefile_build.am_fragment \
@@ -27,33 +27,6 @@ dist-hook:
echo; echo
# This doesn't work very well in a $(srcdir) != $(builddir) setup,
# but this target is for maintainer use only anyway.
glibmm-docs.tar.gz:
find examples -name '*.cc' -o -name '*.h' -o -name '*.xpm' -o -name '*.xml' | \
tar cf - --files-from - $(doc_tarball_files) | gzip -c --best >$@
# Upload documentation and examples:
post-html-recursive:
list='docs examples'; for subdir in $$list; do \
test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) post-html); \
done
post-html-local: glibmm-docs.tar.gz
rsync $(rsync_args) glibmm-docs.tar.gz $$USER@$(web_host):$(web_path_gtkmm)
post-html: post-html-recursive post-html-local
doc-clean-recursive:
(cd docs && $(MAKE) $(AM_MAKEFLAGS) doc-clean)
doc-clean: doc-clean-recursive
doc-rebuild:
(cd docs && $(MAKE) $(AM_MAKEFLAGS) doc-rebuild)
SVN_REV=`svnversion -n`
URL_KEY=URL:
SVN_PATH=`svn info |grep "$(URL_KEY)" |sed -e "s/$(URL_KEY)\s*//"`
@@ -118,26 +91,5 @@ install-module:
release: upload-release release-announce
#FIXME: use generic paths, rather than my particular paths
H2DEF = env python /opt/gnome2/share/pygobject/2.0/codegen/h2def.py
DEFS_INC_DIR = /opt/gnome2/include
GEN_ENUM = env perl ./tools/enum.pl
GEN_EXTRA_DEFS_GLIB = ./tools/extra_defs_gen/generate_extra_defs
DOCEXTRACT = /home/jonathon/gnome-build/pygobject/codegen/docextract_to_xml.py
defs: glib-defs docextract
@echo
@echo "*** Make sure to examine the .defs files to make sure they look reasonable"
@echo
glib-defs:
$(H2DEF) $(DEFS_INC_DIR)/glib-2.0/glib/*.h > glib/src/glib_functions.defs
$(H2DEF) $(DEFS_INC_DIR)/glib-2.0/gobject/*.h > glib/src/gobject_functions.defs
$(H2DEF) $(DEFS_INC_DIR)/glib-2.0/gmodule.h > glib/src/gmodule_functions.defs
$(GEN_ENUM) $(DEFS_INC_DIR)/glib-2.0/glib/*.h > glib/src/glib_enums.defs
$(GEN_ENUM) $(DEFS_INC_DIR)/glib-2.0/gobject/*.h > glib/src/gobject_enums.defs
$(GEN_ENUM) $(DEFS_INC_DIR)/glib-2.0/gmodule.h > glib/src/gmodule_enums.defs
.PHONY: post-html post-html-local post-html-recursive release tag-release upload-release release-announce install-module defs glib-defs
.PHONY: post-html post-html-local post-html-recursive release tag-release upload-release release-announce install-module

View File

@@ -1,71 +1,21 @@
2.20.0 (stable):
* Documentation fixes (Daniel Elstner)
2.19.8 (unstable):
(2.19.4 to 2.19.8 were skipped)
* Added FILE_CREATE_REPLACE_DESTINATION enum value.
* Added Error::TOO_MANY_OPEN_FILES error code.
* Fix some compiler warnings about extra ;s.
(Murray Cumming)
2.19.3 (unstable):
* New API:
* BufferedInputStream: buffer_size property
* BufferedOutputStream: buffer_size, auto_grow properties
* DataInputStream: byte_order, newline_type properties
* DataOutputStream: byte_order property
* FilterInputStream: close_base_stream property, get/set_close_base_stream()
* FilterOutputStream: close_base_stream property, get/set_close_base_stream()
* UnixInputStream: fd and close_fd properties, get_fd(), get/set_close_fd()
* UnixOutputStream: fd and close_fd properties, get_fd(), get/set_close_fd()
* Make licenses consistent with eachother (library gpl vs. lesser gpl, etc)
(Deng Xiyue)
* Fixed some problems when building with exceptions disabled (Murray Cumming)
* Build fixes (Theppitak Karoonboonyanan)
2.19.2 (unstable):
* File: Added make_directory_with_parents() method overload with no parameter.
Bug #566003 (Philip Belemezov).
* NoteTree: Do not use a non-ASCII dash character in a comment, to
avoid the MSVC++ warning C4819 with Visual Studio 2008.
(Tao Wang) Bug #568072
* spawn_*() functions: Added alternative API for when
GLIBMM_EXCEPTIONS_ENABLED is not enabled. (Murray Cumming)
Bug #565487 (Jonathon Jongsma)
* uri_*() functions: Fix memory leak.
(Jonathan Jongsma) Bug #566845 (Jason Kasper)
* ustring: Add an overload which takes only a format string and no arguments
to be substituted. (Daniel Elstner) Bug #506394.
2.19.1 (unstable):
* Fix accidental ABI breakage in 2.19.0 caused by adding default handlers for
new Gio::Drive signals
2.19.0 (unstable):
* wrapped new glib 2.19.x API
* Gio::AppInfo: get_commandline(), can_delete(), do_delete(),
reset_type_associations(), launch_default_for_uri()
* Gio::Drive: new signals changed, disconnected, and eject_button
* Gio::Icon: create(std::string), to_string()(),
* Gio::Mount: guess_content_type_sync(), is_shadowed(), shadow(), unshadow()
* Gio::content_type_from_mine_type();
* Gio::DesktopAppInfo: create_from_keyfile()
* Gio::Emblem: new class
* Gio::EmblemedIcon: new class
* Gio::MemoryOutputStream: new class
* Bugs Fixed:
* 555743 - warning in glibmm
* 562716 - warning fixing cause more warnings.
* 396963 - Add Glib::signal_idle().connect_once()
* Thanks to contributions from Przemysław Grzegorczyk, Dave Foster, Hubert
Figuiere, and Jonathon Jongsma for changes in this release
2.18.2 (stable):
* uri_*(): Fix a memory leak. (Jonathon Jongsma) Bug #566845 (Jason Kasper)
* gmmproc:
- CLASS_GOBJECT(): Added _CUSTOM_CTOR_CAST for classes that need to
include custom code in their cast and construct_params constructors as
already seen in _CLASS_GTKOBJECT. Bug #574861.
- enum handling of unusually-capitalized names: For example,
gtk_foo_bar_get_type() instead of gtk_fo_obar_get_type(). Bug #575870.
(José Alburquerque)
* Build:
- Fix the build with --disable-api-exceptions. (Daniel Elstner)
- Fix -Wshadow warnings in NodeTree. (Hubert Figuiere) Bug #555743
- Fix ununused variables warnings. (Hubert Figuiere) Bug #562716
- Use single glib includes. (Przemysław Grzegorczyk) Bug #563987
- Do not use a non-ASCII dash character, to avoid the MSVC++ warning C4819.
(Tao Wang) Bug #568072
2.18.1 (stable):
* Many windows build improvements

View File

@@ -4,8 +4,8 @@ import os
import os.path
import glob
glibmm2_files = glob.glob('glib/glibmm/*.cc')
giomm_files = glob.glob('gio/giomm/*.cc')
Import('env libraries install_prefix')
@@ -14,13 +14,26 @@ glibmm2.Merge([libraries['sigc2'], libraries['glib2']])
glibmm2.Append(LIBPATH='#libs/glibmm2',
CPPPATH='#libs/glibmm2/glib')
giomm = env.Clone()
giomm.Merge([libraries['sigc2'], libraries['glib2'], libraries['gio']])
giomm.Append(LIBPATH='#libs/glibmm2',
CPPPATH='#libs/glibmm2/gio')
giomm.Append(CPPPATH='#libs/glibmm2/glib')
glibmm2.Append(CXXFLAGS=['-DHAVE_CONFIG_H', '-DGLIBMM_EXCEPTIONS_ENABLED', '-DGLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED', '-DGLIBMM_PROPERTIES_ENABLED'])
#glibmm2.Append(CXXFLAGS='-DG_DISABLE_DEPRECATED')
giomm.Append(CXXFLAGS='-DG_DISABLE_DEPRECATED')
glibmm2.Append(CXXFLAGS='-DG_LOG_DOMAIN=\\\"glibmm\\\"')
giomm.Append(CXXFLAGS=['-DHAVE_CONFIG_H', '-DGLIBMM_EXCEPTIONS_ENABLED', '-DGLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED', '-DGLIBMM_PROPERTIES_ENABLED'])
giomm.Append(CXXFLAGS='-DG_LOG_DOMAIN=\\\"giomm\\\"')
libglibmm2 = glibmm2.SharedLibrary('glibmm2', glibmm2_files)
libgiomm = giomm.SharedLibrary('giomm', giomm_files)
if os.access ('autogen.sh', os.F_OK) :
#
# note that this should also build the giomm config.h and other files
#
glibmm2_configure_script = glibmm2.Command ('configure', 'configure.in', 'cd libs/glibmm2; ./autogen.sh; cd -', ENV=os.environ)
glibmm2_config_h = glibmm2.Command('glib/glibmmconfig.h', [glibmm2_configure_script, 'glib/glibmmconfig.h.in'],
'cd libs/glibmm2; ./configure || exit 1; cd -', ENV=os.environ)
@@ -28,9 +41,10 @@ else :
glibmm2_config_h = glibmm2.Command('glib/glibmmconfig.h', ['configure', 'glib/glibmmconfig.h.in'],
'cd libs/glibmm2; ./configure || exit 1; cd -', ENV=os.environ)
Default([glibmm2_config_h, libglibmm2])
Default([glibmm2_config_h, libglibmm2, libgiomm])
env.Alias('install', env.Install(os.path.join(install_prefix, env['LIBDIR'], 'ardour3'), libglibmm2))
env.Alias('install', env.Install(os.path.join(install_prefix, env['LIBDIR'], 'ardour3'), libgiomm))
env.Alias('tarball', env.Distribute (env['DISTTREE'],
[ 'SConscript',
@@ -42,10 +56,17 @@ env.Alias('tarball', env.Distribute (env['DISTTREE'],
'glib/glibmm-2.4.pc.in',
'glib/glibmm/Makefile.in',
'scripts',
'build_shared'
'build_shared',
'gio/giommconfig.h',
'gio/giommconfig.h.in',
'gio/giomm.h',
'gio/Makefile.in',
] +
glibmm2_files +
giomm_files +
glob.glob('glib/glibmm/*.h') +
glob.glob('glib/glibmm/private/*.h')
glob.glob('glib/glibmm/private/*.h') +
glob.glob('gio/giomm/*.h') +
glob.glob('gio/giomm/private/*.h')
))

View File

@@ -3,3 +3,4 @@
#undef HAVE_FUNLOCKFILE
#undef GETC_UNLOCKED
#undef HAVE_MKFIFO
#undef SIZEOF_WCHAR_T

614
libs/glibmm2/gio/Makefile Normal file
View File

@@ -0,0 +1,614 @@
# Makefile.in generated by automake 1.10.1 from Makefile.am.
# gio/Makefile. Generated from Makefile.in by configure.
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE.
pkgdatadir = $(datadir)/glibmm
pkglibdir = $(libdir)/glibmm
pkgincludedir = $(includedir)/glibmm
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
install_sh_DATA = $(install_sh) -c -m 644
install_sh_PROGRAM = $(install_sh) -c
install_sh_SCRIPT = $(install_sh) -c
INSTALL_HEADER = $(INSTALL_DATA)
transform = $(program_transform_name)
NORMAL_INSTALL = :
PRE_INSTALL = :
POST_INSTALL = :
NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
build_triplet = x86_64-unknown-linux-gnu
host_triplet = x86_64-unknown-linux-gnu
subdir = gio
DIST_COMMON = README $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
$(srcdir)/giomm-2.4.pc.in $(srcdir)/giommconfig.h.in
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
am__aclocal_m4_deps = $(top_srcdir)/scripts/c_std.m4 \
$(top_srcdir)/scripts/cxx.m4 $(top_srcdir)/scripts/cxx_std.m4 \
$(top_srcdir)/scripts/dk-feature.m4 \
$(top_srcdir)/scripts/docgen.m4 \
$(top_srcdir)/scripts/glibmm_check_perl.m4 \
$(top_srcdir)/scripts/macros.m4 \
$(top_srcdir)/scripts/reduced.m4 $(top_srcdir)/scripts/sun.m4 \
$(top_srcdir)/configure.in
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
$(ACLOCAL_M4)
mkinstalldirs = $(install_sh) -d
CONFIG_HEADER = $(top_builddir)/config.h \
$(top_builddir)/glib/glibmmconfig.h giommconfig.h
CONFIG_CLEAN_FILES = giomm-2.4.pc
SOURCES =
DIST_SOURCES =
RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
html-recursive info-recursive install-data-recursive \
install-dvi-recursive install-exec-recursive \
install-html-recursive install-info-recursive \
install-pdf-recursive install-ps-recursive install-recursive \
installcheck-recursive installdirs-recursive pdf-recursive \
ps-recursive uninstall-recursive
am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
am__vpath_adj = case $$p in \
$(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
*) f=$$p;; \
esac;
am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
am__installdirs = "$(DESTDIR)$(gtkmm_configdir)" \
"$(DESTDIR)$(gtkmm_includedir)" "$(DESTDIR)$(pkgconfigdir)"
gtkmm_configDATA_INSTALL = $(INSTALL_DATA)
gtkmm_includeDATA_INSTALL = $(INSTALL_DATA)
pkgconfigDATA_INSTALL = $(INSTALL_DATA)
DATA = $(gtkmm_config_DATA) $(gtkmm_include_DATA) $(pkgconfig_DATA)
RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
distclean-recursive maintainer-clean-recursive
ETAGS = etags
CTAGS = ctags
DIST_SUBDIRS = $(SUBDIRS)
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
ACLOCAL = ${SHELL} /tmp/glibmm-2.18.2/scripts/missing --run aclocal-1.10 -I ./scripts
AMTAR = ${SHELL} /tmp/glibmm-2.18.2/scripts/missing --run tar
AR = ar
AS = as
AUTOCONF = ${SHELL} /tmp/glibmm-2.18.2/scripts/missing --run autoconf
AUTOHEADER = :
AUTOMAKE = ${SHELL} /tmp/glibmm-2.18.2/scripts/missing --run automake-1.10
AWK = gawk
CC = gcc
CCDEPMODE = depmode=gcc3
CFLAGS = -g -O2
CPP = gcc -E
CPPFLAGS =
CXX = g++
CXXCPP = g++ -E
CXXDEPMODE = depmode=gcc3
CXXFLAGS = -g -O2 -Wall -Wno-long-long
CYGPATH_W = echo
DEFS = -DHAVE_CONFIG_H
DEPDIR = .deps
DISABLE_DEPRECATED_API_CFLAGS =
DISABLE_DEPRECATED_CFLAGS =
DLLTOOL = dlltool
DSYMUTIL =
ECHO = echo
ECHO_C =
ECHO_N = -n
ECHO_T =
EGREP = /bin/grep -E
EXEEXT =
F77 = gfortran
FFLAGS = -g -O2
GIOMM_CFLAGS = -I/usr/include/sigc++-2.0 -I/usr/lib64/sigc++-2.0/include -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/gio-unix-2.0/
GIOMM_LIBS = -Wl,--export-dynamic -lsigc-2.0 -lgio-2.0 -lgobject-2.0 -lgmodule-2.0 -lglib-2.0
GLIBMM_CFLAGS = -I/usr/include/sigc++-2.0 -I/usr/lib64/sigc++-2.0/include -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include
GLIBMM_LIBS = -Wl,--export-dynamic -lsigc-2.0 -lgobject-2.0 -lgmodule-2.0 -lglib-2.0
GLIBMM_MAJOR_VERSION = 2
GLIBMM_MICRO_VERSION = 2
GLIBMM_MINOR_VERSION = 18
GLIBMM_RELEASE = 2.18
GLIBMM_VERSION = 2.18.2
GMMPROC_DIR = ${exec_prefix}/lib/glibmm-2.4/proc
GREP = /bin/grep
GTHREAD_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include
GTHREAD_LIBS = -pthread -lgthread-2.0 -lrt -lglib-2.0
GTKMMPROC_MERGECDOCS =
GTKMM_DOXYGEN_INPUT = /tmp/glibmm-2.18.2/glib/glibmm/ /tmp/glibmm-2.18.2/gio/giomm/
INSTALL = /usr/bin/install -c
INSTALL_DATA = ${INSTALL} -m 644
INSTALL_PROGRAM = ${INSTALL}
INSTALL_SCRIPT = ${INSTALL}
INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
LDFLAGS =
LIBGLIBMM_SO_VERSION = 3:0:2
LIBOBJS =
LIBS =
LIBTOOL = $(SHELL) $(top_builddir)/libtool
LN_S = ln -s
LTLIBOBJS =
M4 = m4
MAINT = #
MAKEINFO = ${SHELL} /tmp/glibmm-2.18.2/scripts/missing --run makeinfo
MKDIR_P = /bin/mkdir -p
NMEDIT =
OBJDUMP = objdump
OBJEXT = o
PACKAGE = glibmm
PACKAGE_BUGREPORT = gtkmm-list@gnome.org
PACKAGE_NAME = glibmm
PACKAGE_STRING = glibmm 2.18.2
PACKAGE_TARNAME = glibmm
PACKAGE_VERSION = 2.18.2
PATH_SEPARATOR = :
PERL_PATH = /usr/bin/perl
PKG_CONFIG = /usr/bin/pkg-config
RANLIB = ranlib
SED = /bin/sed
SET_MAKE =
SHELL = /bin/sh
STRIP = strip
VERSION = 2.18.2
abs_builddir = /tmp/glibmm-2.18.2/gio
abs_srcdir = /tmp/glibmm-2.18.2/gio
abs_top_builddir = /tmp/glibmm-2.18.2
abs_top_srcdir = /tmp/glibmm-2.18.2
ac_ct_CC = gcc
ac_ct_CXX = g++
ac_ct_F77 = gfortran
am__include = include
am__leading_dot = .
am__quote =
am__tar = ${AMTAR} chof - "$$tardir"
am__untar = ${AMTAR} xf -
bindir = ${exec_prefix}/bin
build = x86_64-unknown-linux-gnu
build_alias =
build_cpu = x86_64
build_os = linux-gnu
build_vendor = unknown
builddir = .
datadir = ${datarootdir}
datarootdir = ${prefix}/share
docdir = ${datarootdir}/doc/${PACKAGE_TARNAME}
dvidir = ${docdir}
exec_prefix = ${prefix}
host = x86_64-unknown-linux-gnu
host_alias =
host_cpu = x86_64
host_os = linux-gnu
host_vendor = unknown
htmldir = ${docdir}
includedir = ${prefix}/include
infodir = ${datarootdir}/info
install_sh = $(SHELL) /tmp/glibmm-2.18.2/scripts/install-sh
libdir = ${exec_prefix}/lib
libexecdir = ${exec_prefix}/libexec
localedir = ${datarootdir}/locale
localstatedir = ${prefix}/var
mandir = ${datarootdir}/man
mkdir_p = /bin/mkdir -p
oldincludedir = /usr/include
pdfdir = ${docdir}
prefix = /usr/local
program_transform_name = s,x,x,
psdir = ${docdir}
sbindir = ${exec_prefix}/sbin
sharedstatedir = ${prefix}/com
srcdir = .
sysconfdir = ${prefix}/etc
target_alias =
top_build_prefix = ../
top_builddir = ..
top_srcdir = ..
SUBDIRS = src giomm
EXTRA_DIST = README giommconfig.h.in giomm-2.4.pc.in giomm.h
gtkmm_includedir = $(includedir)/giomm-2.4
gtkmm_include_DATA = giomm.h
gtkmm_configdir = $(libdir)/giomm-2.4/include
gtkmm_config_DATA = giommconfig.h
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = giomm-2.4.pc
all: giommconfig.h
$(MAKE) $(AM_MAKEFLAGS) all-recursive
.SUFFIXES:
$(srcdir)/Makefile.in: # $(srcdir)/Makefile.am $(am__configure_deps)
@for dep in $?; do \
case '$(am__configure_deps)' in \
*$$dep*) \
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
&& exit 0; \
exit 1;; \
esac; \
done; \
echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu gio/Makefile'; \
cd $(top_srcdir) && \
$(AUTOMAKE) --gnu gio/Makefile
.PRECIOUS: Makefile
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
@case '$?' in \
*config.status*) \
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
*) \
echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
esac;
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
$(top_srcdir)/configure: # $(am__configure_deps)
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
$(ACLOCAL_M4): # $(am__aclocal_m4_deps)
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
giommconfig.h: stamp-h3
@if test ! -f $@; then \
rm -f stamp-h3; \
$(MAKE) $(AM_MAKEFLAGS) stamp-h3; \
else :; fi
stamp-h3: $(srcdir)/giommconfig.h.in $(top_builddir)/config.status
@rm -f stamp-h3
cd $(top_builddir) && $(SHELL) ./config.status gio/giommconfig.h
$(srcdir)/giommconfig.h.in: # $(am__configure_deps)
cd $(top_srcdir) && $(AUTOHEADER)
rm -f stamp-h3
touch $@
distclean-hdr:
-rm -f giommconfig.h stamp-h3
giomm-2.4.pc: $(top_builddir)/config.status $(srcdir)/giomm-2.4.pc.in
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@
mostlyclean-libtool:
-rm -f *.lo
clean-libtool:
-rm -rf .libs _libs
install-gtkmm_configDATA: $(gtkmm_config_DATA)
@$(NORMAL_INSTALL)
test -z "$(gtkmm_configdir)" || $(MKDIR_P) "$(DESTDIR)$(gtkmm_configdir)"
@list='$(gtkmm_config_DATA)'; for p in $$list; do \
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
f=$(am__strip_dir) \
echo " $(gtkmm_configDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(gtkmm_configdir)/$$f'"; \
$(gtkmm_configDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(gtkmm_configdir)/$$f"; \
done
uninstall-gtkmm_configDATA:
@$(NORMAL_UNINSTALL)
@list='$(gtkmm_config_DATA)'; for p in $$list; do \
f=$(am__strip_dir) \
echo " rm -f '$(DESTDIR)$(gtkmm_configdir)/$$f'"; \
rm -f "$(DESTDIR)$(gtkmm_configdir)/$$f"; \
done
install-gtkmm_includeDATA: $(gtkmm_include_DATA)
@$(NORMAL_INSTALL)
test -z "$(gtkmm_includedir)" || $(MKDIR_P) "$(DESTDIR)$(gtkmm_includedir)"
@list='$(gtkmm_include_DATA)'; for p in $$list; do \
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
f=$(am__strip_dir) \
echo " $(gtkmm_includeDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(gtkmm_includedir)/$$f'"; \
$(gtkmm_includeDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(gtkmm_includedir)/$$f"; \
done
uninstall-gtkmm_includeDATA:
@$(NORMAL_UNINSTALL)
@list='$(gtkmm_include_DATA)'; for p in $$list; do \
f=$(am__strip_dir) \
echo " rm -f '$(DESTDIR)$(gtkmm_includedir)/$$f'"; \
rm -f "$(DESTDIR)$(gtkmm_includedir)/$$f"; \
done
install-pkgconfigDATA: $(pkgconfig_DATA)
@$(NORMAL_INSTALL)
test -z "$(pkgconfigdir)" || $(MKDIR_P) "$(DESTDIR)$(pkgconfigdir)"
@list='$(pkgconfig_DATA)'; for p in $$list; do \
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
f=$(am__strip_dir) \
echo " $(pkgconfigDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(pkgconfigdir)/$$f'"; \
$(pkgconfigDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(pkgconfigdir)/$$f"; \
done
uninstall-pkgconfigDATA:
@$(NORMAL_UNINSTALL)
@list='$(pkgconfig_DATA)'; for p in $$list; do \
f=$(am__strip_dir) \
echo " rm -f '$(DESTDIR)$(pkgconfigdir)/$$f'"; \
rm -f "$(DESTDIR)$(pkgconfigdir)/$$f"; \
done
# This directory's subdirectories are mostly independent; you can cd
# into them and run `make' without going through this Makefile.
# To change the values of `make' variables: instead of editing Makefiles,
# (1) if the variable is set in `config.status', edit `config.status'
# (which will cause the Makefiles to be regenerated when you run `make');
# (2) otherwise, pass the desired values on the `make' command line.
$(RECURSIVE_TARGETS):
@failcom='exit 1'; \
for f in x $$MAKEFLAGS; do \
case $$f in \
*=* | --[!k]*);; \
*k*) failcom='fail=yes';; \
esac; \
done; \
dot_seen=no; \
target=`echo $@ | sed s/-recursive//`; \
list='$(SUBDIRS)'; for subdir in $$list; do \
echo "Making $$target in $$subdir"; \
if test "$$subdir" = "."; then \
dot_seen=yes; \
local_target="$$target-am"; \
else \
local_target="$$target"; \
fi; \
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
|| eval $$failcom; \
done; \
if test "$$dot_seen" = "no"; then \
$(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
fi; test -z "$$fail"
$(RECURSIVE_CLEAN_TARGETS):
@failcom='exit 1'; \
for f in x $$MAKEFLAGS; do \
case $$f in \
*=* | --[!k]*);; \
*k*) failcom='fail=yes';; \
esac; \
done; \
dot_seen=no; \
case "$@" in \
distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
*) list='$(SUBDIRS)' ;; \
esac; \
rev=''; for subdir in $$list; do \
if test "$$subdir" = "."; then :; else \
rev="$$subdir $$rev"; \
fi; \
done; \
rev="$$rev ."; \
target=`echo $@ | sed s/-recursive//`; \
for subdir in $$rev; do \
echo "Making $$target in $$subdir"; \
if test "$$subdir" = "."; then \
local_target="$$target-am"; \
else \
local_target="$$target"; \
fi; \
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
|| eval $$failcom; \
done && test -z "$$fail"
tags-recursive:
list='$(SUBDIRS)'; for subdir in $$list; do \
test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
done
ctags-recursive:
list='$(SUBDIRS)'; for subdir in $$list; do \
test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
done
ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
unique=`for i in $$list; do \
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
done | \
$(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
END { if (nonempty) { for (i in files) print i; }; }'`; \
mkid -fID $$unique
tags: TAGS
TAGS: tags-recursive $(HEADERS) $(SOURCES) giommconfig.h.in $(TAGS_DEPENDENCIES) \
$(TAGS_FILES) $(LISP)
tags=; \
here=`pwd`; \
if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
include_option=--etags-include; \
empty_fix=.; \
else \
include_option=--include; \
empty_fix=; \
fi; \
list='$(SUBDIRS)'; for subdir in $$list; do \
if test "$$subdir" = .; then :; else \
test ! -f $$subdir/TAGS || \
tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
fi; \
done; \
list='$(SOURCES) $(HEADERS) giommconfig.h.in $(LISP) $(TAGS_FILES)'; \
unique=`for i in $$list; do \
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
done | \
$(AWK) '{ files[$$0] = 1; nonempty = 1; } \
END { if (nonempty) { for (i in files) print i; }; }'`; \
if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
test -n "$$unique" || unique=$$empty_fix; \
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
$$tags $$unique; \
fi
ctags: CTAGS
CTAGS: ctags-recursive $(HEADERS) $(SOURCES) giommconfig.h.in $(TAGS_DEPENDENCIES) \
$(TAGS_FILES) $(LISP)
tags=; \
list='$(SOURCES) $(HEADERS) giommconfig.h.in $(LISP) $(TAGS_FILES)'; \
unique=`for i in $$list; do \
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
done | \
$(AWK) '{ files[$$0] = 1; nonempty = 1; } \
END { if (nonempty) { for (i in files) print i; }; }'`; \
test -z "$(CTAGS_ARGS)$$tags$$unique" \
|| $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
$$tags $$unique
GTAGS:
here=`$(am__cd) $(top_builddir) && pwd` \
&& cd $(top_srcdir) \
&& gtags -i $(GTAGS_ARGS) $$here
distclean-tags:
-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
distdir: $(DISTFILES)
@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
list='$(DISTFILES)'; \
dist_files=`for file in $$list; do echo $$file; done | \
sed -e "s|^$$srcdirstrip/||;t" \
-e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
case $$dist_files in \
*/*) $(MKDIR_P) `echo "$$dist_files" | \
sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
sort -u` ;; \
esac; \
for file in $$dist_files; do \
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
if test -d $$d/$$file; then \
dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
fi; \
cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
else \
test -f $(distdir)/$$file \
|| cp -p $$d/$$file $(distdir)/$$file \
|| exit 1; \
fi; \
done
list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
if test "$$subdir" = .; then :; else \
test -d "$(distdir)/$$subdir" \
|| $(MKDIR_P) "$(distdir)/$$subdir" \
|| exit 1; \
distdir=`$(am__cd) $(distdir) && pwd`; \
top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
(cd $$subdir && \
$(MAKE) $(AM_MAKEFLAGS) \
top_distdir="$$top_distdir" \
distdir="$$distdir/$$subdir" \
am__remove_distdir=: \
am__skip_length_check=: \
distdir) \
|| exit 1; \
fi; \
done
check-am: all-am
check: check-recursive
all-am: Makefile $(DATA) giommconfig.h
installdirs: installdirs-recursive
installdirs-am:
for dir in "$(DESTDIR)$(gtkmm_configdir)" "$(DESTDIR)$(gtkmm_includedir)" "$(DESTDIR)$(pkgconfigdir)"; do \
test -z "$$dir" || $(MKDIR_P) "$$dir"; \
done
install: install-recursive
install-exec: install-exec-recursive
install-data: install-data-recursive
uninstall: uninstall-recursive
install-am: all-am
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
installcheck: installcheck-recursive
install-strip:
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
`test -z '$(STRIP)' || \
echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
mostlyclean-generic:
clean-generic:
distclean-generic:
-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
maintainer-clean-generic:
@echo "This command is intended for maintainers to use"
@echo "it deletes files that may require special tools to rebuild."
clean: clean-recursive
clean-am: clean-generic clean-libtool mostlyclean-am
distclean: distclean-recursive
-rm -f Makefile
distclean-am: clean-am distclean-generic distclean-hdr distclean-tags
dvi: dvi-recursive
dvi-am:
html: html-recursive
info: info-recursive
info-am:
install-data-am: install-gtkmm_configDATA install-gtkmm_includeDATA \
install-pkgconfigDATA
install-dvi: install-dvi-recursive
install-exec-am:
install-html: install-html-recursive
install-info: install-info-recursive
install-man:
install-pdf: install-pdf-recursive
install-ps: install-ps-recursive
installcheck-am:
maintainer-clean: maintainer-clean-recursive
-rm -f Makefile
maintainer-clean-am: distclean-am maintainer-clean-generic
mostlyclean: mostlyclean-recursive
mostlyclean-am: mostlyclean-generic mostlyclean-libtool
pdf: pdf-recursive
pdf-am:
ps: ps-recursive
ps-am:
uninstall-am: uninstall-gtkmm_configDATA uninstall-gtkmm_includeDATA \
uninstall-pkgconfigDATA
.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) install-am \
install-strip
.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
all all-am check check-am clean clean-generic clean-libtool \
ctags ctags-recursive distclean distclean-generic \
distclean-hdr distclean-libtool distclean-tags distdir dvi \
dvi-am html html-am info info-am install install-am \
install-data install-data-am install-dvi install-dvi-am \
install-exec install-exec-am install-gtkmm_configDATA \
install-gtkmm_includeDATA install-html install-html-am \
install-info install-info-am install-man install-pdf \
install-pdf-am install-pkgconfigDATA install-ps install-ps-am \
install-strip installcheck installcheck-am installdirs \
installdirs-am maintainer-clean maintainer-clean-generic \
mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \
ps ps-am tags tags-recursive uninstall uninstall-am \
uninstall-gtkmm_configDATA uninstall-gtkmm_includeDATA \
uninstall-pkgconfigDATA
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:

View File

@@ -0,0 +1,13 @@
SUBDIRS = src giomm
EXTRA_DIST = README giommconfig.h.in giomm-2.4.pc.in giomm.h
gtkmm_includedir = $(includedir)/giomm-2.4
gtkmm_include_DATA = giomm.h
gtkmm_configdir = $(libdir)/giomm-2.4/include
gtkmm_config_DATA = giommconfig.h
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = giomm-2.4.pc

View File

@@ -0,0 +1,614 @@
# Makefile.in generated by automake 1.10.1 from Makefile.am.
# @configure_input@
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE.
@SET_MAKE@
VPATH = @srcdir@
pkgdatadir = $(datadir)/@PACKAGE@
pkglibdir = $(libdir)/@PACKAGE@
pkgincludedir = $(includedir)/@PACKAGE@
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
install_sh_DATA = $(install_sh) -c -m 644
install_sh_PROGRAM = $(install_sh) -c
install_sh_SCRIPT = $(install_sh) -c
INSTALL_HEADER = $(INSTALL_DATA)
transform = $(program_transform_name)
NORMAL_INSTALL = :
PRE_INSTALL = :
POST_INSTALL = :
NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
build_triplet = @build@
host_triplet = @host@
subdir = gio
DIST_COMMON = README $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
$(srcdir)/giomm-2.4.pc.in $(srcdir)/giommconfig.h.in
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
am__aclocal_m4_deps = $(top_srcdir)/scripts/c_std.m4 \
$(top_srcdir)/scripts/cxx.m4 $(top_srcdir)/scripts/cxx_std.m4 \
$(top_srcdir)/scripts/dk-feature.m4 \
$(top_srcdir)/scripts/docgen.m4 \
$(top_srcdir)/scripts/glibmm_check_perl.m4 \
$(top_srcdir)/scripts/macros.m4 \
$(top_srcdir)/scripts/reduced.m4 $(top_srcdir)/scripts/sun.m4 \
$(top_srcdir)/configure.in
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
$(ACLOCAL_M4)
mkinstalldirs = $(install_sh) -d
CONFIG_HEADER = $(top_builddir)/config.h \
$(top_builddir)/glib/glibmmconfig.h giommconfig.h
CONFIG_CLEAN_FILES = giomm-2.4.pc
SOURCES =
DIST_SOURCES =
RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
html-recursive info-recursive install-data-recursive \
install-dvi-recursive install-exec-recursive \
install-html-recursive install-info-recursive \
install-pdf-recursive install-ps-recursive install-recursive \
installcheck-recursive installdirs-recursive pdf-recursive \
ps-recursive uninstall-recursive
am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
am__vpath_adj = case $$p in \
$(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
*) f=$$p;; \
esac;
am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
am__installdirs = "$(DESTDIR)$(gtkmm_configdir)" \
"$(DESTDIR)$(gtkmm_includedir)" "$(DESTDIR)$(pkgconfigdir)"
gtkmm_configDATA_INSTALL = $(INSTALL_DATA)
gtkmm_includeDATA_INSTALL = $(INSTALL_DATA)
pkgconfigDATA_INSTALL = $(INSTALL_DATA)
DATA = $(gtkmm_config_DATA) $(gtkmm_include_DATA) $(pkgconfig_DATA)
RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
distclean-recursive maintainer-clean-recursive
ETAGS = etags
CTAGS = ctags
DIST_SUBDIRS = $(SUBDIRS)
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
ACLOCAL = @ACLOCAL@
AMTAR = @AMTAR@
AR = @AR@
AS = @AS@
AUTOCONF = @AUTOCONF@
AUTOHEADER = @AUTOHEADER@
AUTOMAKE = @AUTOMAKE@
AWK = @AWK@
CC = @CC@
CCDEPMODE = @CCDEPMODE@
CFLAGS = @CFLAGS@
CPP = @CPP@
CPPFLAGS = @CPPFLAGS@
CXX = @CXX@
CXXCPP = @CXXCPP@
CXXDEPMODE = @CXXDEPMODE@
CXXFLAGS = @CXXFLAGS@
CYGPATH_W = @CYGPATH_W@
DEFS = @DEFS@
DEPDIR = @DEPDIR@
DISABLE_DEPRECATED_API_CFLAGS = @DISABLE_DEPRECATED_API_CFLAGS@
DISABLE_DEPRECATED_CFLAGS = @DISABLE_DEPRECATED_CFLAGS@
DLLTOOL = @DLLTOOL@
DSYMUTIL = @DSYMUTIL@
ECHO = @ECHO@
ECHO_C = @ECHO_C@
ECHO_N = @ECHO_N@
ECHO_T = @ECHO_T@
EGREP = @EGREP@
EXEEXT = @EXEEXT@
F77 = @F77@
FFLAGS = @FFLAGS@
GIOMM_CFLAGS = @GIOMM_CFLAGS@
GIOMM_LIBS = @GIOMM_LIBS@
GLIBMM_CFLAGS = @GLIBMM_CFLAGS@
GLIBMM_LIBS = @GLIBMM_LIBS@
GLIBMM_MAJOR_VERSION = @GLIBMM_MAJOR_VERSION@
GLIBMM_MICRO_VERSION = @GLIBMM_MICRO_VERSION@
GLIBMM_MINOR_VERSION = @GLIBMM_MINOR_VERSION@
GLIBMM_RELEASE = @GLIBMM_RELEASE@
GLIBMM_VERSION = @GLIBMM_VERSION@
GMMPROC_DIR = @GMMPROC_DIR@
GREP = @GREP@
GTHREAD_CFLAGS = @GTHREAD_CFLAGS@
GTHREAD_LIBS = @GTHREAD_LIBS@
GTKMMPROC_MERGECDOCS = @GTKMMPROC_MERGECDOCS@
GTKMM_DOXYGEN_INPUT = @GTKMM_DOXYGEN_INPUT@
INSTALL = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
LDFLAGS = @LDFLAGS@
LIBGLIBMM_SO_VERSION = @LIBGLIBMM_SO_VERSION@
LIBOBJS = @LIBOBJS@
LIBS = @LIBS@
LIBTOOL = @LIBTOOL@
LN_S = @LN_S@
LTLIBOBJS = @LTLIBOBJS@
M4 = @M4@
MAINT = @MAINT@
MAKEINFO = @MAKEINFO@
MKDIR_P = @MKDIR_P@
NMEDIT = @NMEDIT@
OBJDUMP = @OBJDUMP@
OBJEXT = @OBJEXT@
PACKAGE = @PACKAGE@
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
PACKAGE_NAME = @PACKAGE_NAME@
PACKAGE_STRING = @PACKAGE_STRING@
PACKAGE_TARNAME = @PACKAGE_TARNAME@
PACKAGE_VERSION = @PACKAGE_VERSION@
PATH_SEPARATOR = @PATH_SEPARATOR@
PERL_PATH = @PERL_PATH@
PKG_CONFIG = @PKG_CONFIG@
RANLIB = @RANLIB@
SED = @SED@
SET_MAKE = @SET_MAKE@
SHELL = @SHELL@
STRIP = @STRIP@
VERSION = @VERSION@
abs_builddir = @abs_builddir@
abs_srcdir = @abs_srcdir@
abs_top_builddir = @abs_top_builddir@
abs_top_srcdir = @abs_top_srcdir@
ac_ct_CC = @ac_ct_CC@
ac_ct_CXX = @ac_ct_CXX@
ac_ct_F77 = @ac_ct_F77@
am__include = @am__include@
am__leading_dot = @am__leading_dot@
am__quote = @am__quote@
am__tar = @am__tar@
am__untar = @am__untar@
bindir = @bindir@
build = @build@
build_alias = @build_alias@
build_cpu = @build_cpu@
build_os = @build_os@
build_vendor = @build_vendor@
builddir = @builddir@
datadir = @datadir@
datarootdir = @datarootdir@
docdir = @docdir@
dvidir = @dvidir@
exec_prefix = @exec_prefix@
host = @host@
host_alias = @host_alias@
host_cpu = @host_cpu@
host_os = @host_os@
host_vendor = @host_vendor@
htmldir = @htmldir@
includedir = @includedir@
infodir = @infodir@
install_sh = @install_sh@
libdir = @libdir@
libexecdir = @libexecdir@
localedir = @localedir@
localstatedir = @localstatedir@
mandir = @mandir@
mkdir_p = @mkdir_p@
oldincludedir = @oldincludedir@
pdfdir = @pdfdir@
prefix = @prefix@
program_transform_name = @program_transform_name@
psdir = @psdir@
sbindir = @sbindir@
sharedstatedir = @sharedstatedir@
srcdir = @srcdir@
sysconfdir = @sysconfdir@
target_alias = @target_alias@
top_build_prefix = @top_build_prefix@
top_builddir = @top_builddir@
top_srcdir = @top_srcdir@
SUBDIRS = src giomm
EXTRA_DIST = README giommconfig.h.in giomm-2.4.pc.in giomm.h
gtkmm_includedir = $(includedir)/giomm-2.4
gtkmm_include_DATA = giomm.h
gtkmm_configdir = $(libdir)/giomm-2.4/include
gtkmm_config_DATA = giommconfig.h
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = giomm-2.4.pc
all: giommconfig.h
$(MAKE) $(AM_MAKEFLAGS) all-recursive
.SUFFIXES:
$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
@for dep in $?; do \
case '$(am__configure_deps)' in \
*$$dep*) \
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
&& exit 0; \
exit 1;; \
esac; \
done; \
echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu gio/Makefile'; \
cd $(top_srcdir) && \
$(AUTOMAKE) --gnu gio/Makefile
.PRECIOUS: Makefile
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
@case '$?' in \
*config.status*) \
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
*) \
echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
esac;
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
giommconfig.h: stamp-h3
@if test ! -f $@; then \
rm -f stamp-h3; \
$(MAKE) $(AM_MAKEFLAGS) stamp-h3; \
else :; fi
stamp-h3: $(srcdir)/giommconfig.h.in $(top_builddir)/config.status
@rm -f stamp-h3
cd $(top_builddir) && $(SHELL) ./config.status gio/giommconfig.h
$(srcdir)/giommconfig.h.in: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
cd $(top_srcdir) && $(AUTOHEADER)
rm -f stamp-h3
touch $@
distclean-hdr:
-rm -f giommconfig.h stamp-h3
giomm-2.4.pc: $(top_builddir)/config.status $(srcdir)/giomm-2.4.pc.in
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@
mostlyclean-libtool:
-rm -f *.lo
clean-libtool:
-rm -rf .libs _libs
install-gtkmm_configDATA: $(gtkmm_config_DATA)
@$(NORMAL_INSTALL)
test -z "$(gtkmm_configdir)" || $(MKDIR_P) "$(DESTDIR)$(gtkmm_configdir)"
@list='$(gtkmm_config_DATA)'; for p in $$list; do \
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
f=$(am__strip_dir) \
echo " $(gtkmm_configDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(gtkmm_configdir)/$$f'"; \
$(gtkmm_configDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(gtkmm_configdir)/$$f"; \
done
uninstall-gtkmm_configDATA:
@$(NORMAL_UNINSTALL)
@list='$(gtkmm_config_DATA)'; for p in $$list; do \
f=$(am__strip_dir) \
echo " rm -f '$(DESTDIR)$(gtkmm_configdir)/$$f'"; \
rm -f "$(DESTDIR)$(gtkmm_configdir)/$$f"; \
done
install-gtkmm_includeDATA: $(gtkmm_include_DATA)
@$(NORMAL_INSTALL)
test -z "$(gtkmm_includedir)" || $(MKDIR_P) "$(DESTDIR)$(gtkmm_includedir)"
@list='$(gtkmm_include_DATA)'; for p in $$list; do \
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
f=$(am__strip_dir) \
echo " $(gtkmm_includeDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(gtkmm_includedir)/$$f'"; \
$(gtkmm_includeDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(gtkmm_includedir)/$$f"; \
done
uninstall-gtkmm_includeDATA:
@$(NORMAL_UNINSTALL)
@list='$(gtkmm_include_DATA)'; for p in $$list; do \
f=$(am__strip_dir) \
echo " rm -f '$(DESTDIR)$(gtkmm_includedir)/$$f'"; \
rm -f "$(DESTDIR)$(gtkmm_includedir)/$$f"; \
done
install-pkgconfigDATA: $(pkgconfig_DATA)
@$(NORMAL_INSTALL)
test -z "$(pkgconfigdir)" || $(MKDIR_P) "$(DESTDIR)$(pkgconfigdir)"
@list='$(pkgconfig_DATA)'; for p in $$list; do \
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
f=$(am__strip_dir) \
echo " $(pkgconfigDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(pkgconfigdir)/$$f'"; \
$(pkgconfigDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(pkgconfigdir)/$$f"; \
done
uninstall-pkgconfigDATA:
@$(NORMAL_UNINSTALL)
@list='$(pkgconfig_DATA)'; for p in $$list; do \
f=$(am__strip_dir) \
echo " rm -f '$(DESTDIR)$(pkgconfigdir)/$$f'"; \
rm -f "$(DESTDIR)$(pkgconfigdir)/$$f"; \
done
# This directory's subdirectories are mostly independent; you can cd
# into them and run `make' without going through this Makefile.
# To change the values of `make' variables: instead of editing Makefiles,
# (1) if the variable is set in `config.status', edit `config.status'
# (which will cause the Makefiles to be regenerated when you run `make');
# (2) otherwise, pass the desired values on the `make' command line.
$(RECURSIVE_TARGETS):
@failcom='exit 1'; \
for f in x $$MAKEFLAGS; do \
case $$f in \
*=* | --[!k]*);; \
*k*) failcom='fail=yes';; \
esac; \
done; \
dot_seen=no; \
target=`echo $@ | sed s/-recursive//`; \
list='$(SUBDIRS)'; for subdir in $$list; do \
echo "Making $$target in $$subdir"; \
if test "$$subdir" = "."; then \
dot_seen=yes; \
local_target="$$target-am"; \
else \
local_target="$$target"; \
fi; \
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
|| eval $$failcom; \
done; \
if test "$$dot_seen" = "no"; then \
$(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
fi; test -z "$$fail"
$(RECURSIVE_CLEAN_TARGETS):
@failcom='exit 1'; \
for f in x $$MAKEFLAGS; do \
case $$f in \
*=* | --[!k]*);; \
*k*) failcom='fail=yes';; \
esac; \
done; \
dot_seen=no; \
case "$@" in \
distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
*) list='$(SUBDIRS)' ;; \
esac; \
rev=''; for subdir in $$list; do \
if test "$$subdir" = "."; then :; else \
rev="$$subdir $$rev"; \
fi; \
done; \
rev="$$rev ."; \
target=`echo $@ | sed s/-recursive//`; \
for subdir in $$rev; do \
echo "Making $$target in $$subdir"; \
if test "$$subdir" = "."; then \
local_target="$$target-am"; \
else \
local_target="$$target"; \
fi; \
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
|| eval $$failcom; \
done && test -z "$$fail"
tags-recursive:
list='$(SUBDIRS)'; for subdir in $$list; do \
test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
done
ctags-recursive:
list='$(SUBDIRS)'; for subdir in $$list; do \
test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
done
ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
unique=`for i in $$list; do \
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
done | \
$(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
END { if (nonempty) { for (i in files) print i; }; }'`; \
mkid -fID $$unique
tags: TAGS
TAGS: tags-recursive $(HEADERS) $(SOURCES) giommconfig.h.in $(TAGS_DEPENDENCIES) \
$(TAGS_FILES) $(LISP)
tags=; \
here=`pwd`; \
if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
include_option=--etags-include; \
empty_fix=.; \
else \
include_option=--include; \
empty_fix=; \
fi; \
list='$(SUBDIRS)'; for subdir in $$list; do \
if test "$$subdir" = .; then :; else \
test ! -f $$subdir/TAGS || \
tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
fi; \
done; \
list='$(SOURCES) $(HEADERS) giommconfig.h.in $(LISP) $(TAGS_FILES)'; \
unique=`for i in $$list; do \
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
done | \
$(AWK) '{ files[$$0] = 1; nonempty = 1; } \
END { if (nonempty) { for (i in files) print i; }; }'`; \
if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
test -n "$$unique" || unique=$$empty_fix; \
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
$$tags $$unique; \
fi
ctags: CTAGS
CTAGS: ctags-recursive $(HEADERS) $(SOURCES) giommconfig.h.in $(TAGS_DEPENDENCIES) \
$(TAGS_FILES) $(LISP)
tags=; \
list='$(SOURCES) $(HEADERS) giommconfig.h.in $(LISP) $(TAGS_FILES)'; \
unique=`for i in $$list; do \
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
done | \
$(AWK) '{ files[$$0] = 1; nonempty = 1; } \
END { if (nonempty) { for (i in files) print i; }; }'`; \
test -z "$(CTAGS_ARGS)$$tags$$unique" \
|| $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
$$tags $$unique
GTAGS:
here=`$(am__cd) $(top_builddir) && pwd` \
&& cd $(top_srcdir) \
&& gtags -i $(GTAGS_ARGS) $$here
distclean-tags:
-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
distdir: $(DISTFILES)
@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
list='$(DISTFILES)'; \
dist_files=`for file in $$list; do echo $$file; done | \
sed -e "s|^$$srcdirstrip/||;t" \
-e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
case $$dist_files in \
*/*) $(MKDIR_P) `echo "$$dist_files" | \
sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
sort -u` ;; \
esac; \
for file in $$dist_files; do \
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
if test -d $$d/$$file; then \
dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
fi; \
cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
else \
test -f $(distdir)/$$file \
|| cp -p $$d/$$file $(distdir)/$$file \
|| exit 1; \
fi; \
done
list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
if test "$$subdir" = .; then :; else \
test -d "$(distdir)/$$subdir" \
|| $(MKDIR_P) "$(distdir)/$$subdir" \
|| exit 1; \
distdir=`$(am__cd) $(distdir) && pwd`; \
top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
(cd $$subdir && \
$(MAKE) $(AM_MAKEFLAGS) \
top_distdir="$$top_distdir" \
distdir="$$distdir/$$subdir" \
am__remove_distdir=: \
am__skip_length_check=: \
distdir) \
|| exit 1; \
fi; \
done
check-am: all-am
check: check-recursive
all-am: Makefile $(DATA) giommconfig.h
installdirs: installdirs-recursive
installdirs-am:
for dir in "$(DESTDIR)$(gtkmm_configdir)" "$(DESTDIR)$(gtkmm_includedir)" "$(DESTDIR)$(pkgconfigdir)"; do \
test -z "$$dir" || $(MKDIR_P) "$$dir"; \
done
install: install-recursive
install-exec: install-exec-recursive
install-data: install-data-recursive
uninstall: uninstall-recursive
install-am: all-am
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
installcheck: installcheck-recursive
install-strip:
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
`test -z '$(STRIP)' || \
echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
mostlyclean-generic:
clean-generic:
distclean-generic:
-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
maintainer-clean-generic:
@echo "This command is intended for maintainers to use"
@echo "it deletes files that may require special tools to rebuild."
clean: clean-recursive
clean-am: clean-generic clean-libtool mostlyclean-am
distclean: distclean-recursive
-rm -f Makefile
distclean-am: clean-am distclean-generic distclean-hdr distclean-tags
dvi: dvi-recursive
dvi-am:
html: html-recursive
info: info-recursive
info-am:
install-data-am: install-gtkmm_configDATA install-gtkmm_includeDATA \
install-pkgconfigDATA
install-dvi: install-dvi-recursive
install-exec-am:
install-html: install-html-recursive
install-info: install-info-recursive
install-man:
install-pdf: install-pdf-recursive
install-ps: install-ps-recursive
installcheck-am:
maintainer-clean: maintainer-clean-recursive
-rm -f Makefile
maintainer-clean-am: distclean-am maintainer-clean-generic
mostlyclean: mostlyclean-recursive
mostlyclean-am: mostlyclean-generic mostlyclean-libtool
pdf: pdf-recursive
pdf-am:
ps: ps-recursive
ps-am:
uninstall-am: uninstall-gtkmm_configDATA uninstall-gtkmm_includeDATA \
uninstall-pkgconfigDATA
.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) install-am \
install-strip
.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
all all-am check check-am clean clean-generic clean-libtool \
ctags ctags-recursive distclean distclean-generic \
distclean-hdr distclean-libtool distclean-tags distdir dvi \
dvi-am html html-am info info-am install install-am \
install-data install-data-am install-dvi install-dvi-am \
install-exec install-exec-am install-gtkmm_configDATA \
install-gtkmm_includeDATA install-html install-html-am \
install-info install-info-am install-man install-pdf \
install-pdf-am install-pkgconfigDATA install-ps install-ps-am \
install-strip installcheck installcheck-am installdirs \
installdirs-am maintainer-clean maintainer-clean-generic \
mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \
ps ps-am tags tags-recursive uninstall uninstall-am \
uninstall-gtkmm_configDATA uninstall-gtkmm_includeDATA \
uninstall-pkgconfigDATA
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:

7
libs/glibmm2/gio/README Normal file
View File

@@ -0,0 +1,7 @@
Base directory for giomm.
Here is the layout:
src - actual sources used to build
giomm - built sources (do not edit)

View File

@@ -0,0 +1,11 @@
prefix=/usr/local
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include
Name: giomm
Description: C++ wrapper for gio-standalone
Requires: gio-2.0 glibmm-2.4
Version: 2.18.2
Libs: -L${libdir} -lgiomm-2.4
Cflags: -I${includedir}/giomm-2.4 -I${libdir}/giomm-2.4/include

View File

@@ -0,0 +1,11 @@
prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@
Name: giomm
Description: C++ wrapper for gio-standalone
Requires: gio-2.0 glibmm-2.4
Version: @VERSION@
Libs: -L${libdir} -lgiomm-2.4
Cflags: -I${includedir}/giomm-2.4 -I${libdir}/giomm-2.4/include

57
libs/glibmm2/gio/giomm.h Normal file
View File

@@ -0,0 +1,57 @@
#ifndef _GIOMM_H
#define _GIOMM_H
/*
* Copyright (C) 2007 The giomm Development Team
*
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#include <giomm/appinfo.h>
#include <giomm/asyncresult.h>
#include <giomm/bufferedinputstream.h>
#include <giomm/bufferedoutputstream.h>
#include <giomm/cancellable.h>
#include <giomm/datainputstream.h>
#include <giomm/dataoutputstream.h>
#include <giomm/drive.h>
#include <giomm/enums.h>
#include <giomm/error.h>
#include <giomm/fileattributeinfolist.h>
#include <giomm/fileenumerator.h>
#include <giomm/file.h>
#include <giomm/fileicon.h>
#include <giomm/fileinfo.h>
#include <giomm/fileinputstream.h>
#include <giomm/filemonitor.h>
#include <giomm/fileoutputstream.h>
#include <giomm/filterinputstream.h>
#include <giomm/filteroutputstream.h>
#include <giomm/icon.h>
#include <giomm/init.h>
#include <giomm/inputstream.h>
#include <giomm/loadableicon.h>
#include <giomm/memoryinputstream.h>
#include <giomm/mount.h>
#include <giomm/mountoperation.h>
#include <giomm/outputstream.h>
#include <giomm/seekable.h>
#include <giomm/volume.h>
#include <giomm/volumemonitor.h>
#include <giomm/contenttype.h>
#endif /* #ifndef _GIOMM_H */

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,898 @@
init.lo: init.cc init.h wrap_init.h ../../glib/glibmm.h \
../../glib/glibmmconfig.h ../../glib/glibmm/arrayhandle.h \
../../glib/glibmm/containerhandle_shared.h \
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/cstddef \
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/x86_64-redhat-linux/bits/c++config.h \
/usr/include/bits/wordsize.h \
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/x86_64-redhat-linux/bits/os_defines.h \
/usr/include/features.h /usr/include/sys/cdefs.h \
/usr/include/gnu/stubs.h /usr/include/gnu/stubs-64.h \
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/x86_64-redhat-linux/bits/cpu_defines.h \
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/include/stddef.h \
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/algorithm \
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/bits/stl_algobase.h \
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/bits/functexcept.h \
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/exception_defines.h \
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/bits/cpp_type_traits.h \
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/ext/type_traits.h \
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/ext/numeric_traits.h \
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/bits/stl_pair.h \
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/bits/stl_move.h \
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/bits/concept_check.h \
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/bits/stl_iterator_base_types.h \
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/bits/stl_iterator_base_funcs.h \
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/bits/stl_iterator.h \
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/debug/debug.h \
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/bits/stl_algo.h \
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/cstdlib \
/usr/include/stdlib.h \
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/include/stddef.h \
/usr/include/bits/waitflags.h /usr/include/bits/waitstatus.h \
/usr/include/endian.h /usr/include/bits/endian.h \
/usr/include/bits/byteswap.h /usr/include/xlocale.h \
/usr/include/sys/types.h /usr/include/bits/types.h \
/usr/include/bits/typesizes.h /usr/include/time.h \
/usr/include/sys/select.h /usr/include/bits/select.h \
/usr/include/bits/sigset.h /usr/include/bits/time.h \
/usr/include/sys/sysmacros.h /usr/include/bits/pthreadtypes.h \
/usr/include/alloca.h \
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/bits/algorithmfwd.h \
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/bits/stl_heap.h \
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/bits/stl_tempbuf.h \
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/bits/stl_construct.h \
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/new \
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/exception \
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/bits/stl_uninitialized.h \
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/iterator \
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/ostream \
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/ios \
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/iosfwd \
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/bits/stringfwd.h \
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/bits/postypes.h \
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/cwchar \
/usr/include/wchar.h /usr/include/stdio.h \
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/include/stdarg.h \
/usr/include/bits/wchar.h /usr/include/stdint.h \
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/bits/char_traits.h \
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/cstdio \
/usr/include/stdio.h /usr/include/libio.h /usr/include/_G_config.h \
/usr/include/wchar.h /usr/include/bits/stdio_lim.h \
/usr/include/bits/sys_errlist.h /usr/include/bits/stdio.h \
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/bits/localefwd.h \
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/x86_64-redhat-linux/bits/c++locale.h \
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/clocale \
/usr/include/locale.h /usr/include/bits/locale.h \
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/cctype \
/usr/include/ctype.h \
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/bits/ios_base.h \
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/ext/atomicity.h \
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/x86_64-redhat-linux/bits/gthr.h \
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/x86_64-redhat-linux/bits/gthr-default.h \
/usr/include/pthread.h /usr/include/sched.h /usr/include/bits/sched.h \
/usr/include/signal.h /usr/include/bits/setjmp.h /usr/include/unistd.h \
/usr/include/bits/posix_opt.h /usr/include/bits/environments.h \
/usr/include/bits/confname.h /usr/include/getopt.h \
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/x86_64-redhat-linux/bits/atomic_word.h \
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/bits/locale_classes.h \
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/string \
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/bits/allocator.h \
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/x86_64-redhat-linux/bits/c++allocator.h \
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/ext/new_allocator.h \
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/bits/ostream_insert.h \
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/cxxabi-forced.h \
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/bits/stl_function.h \
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/backward/binders.h \
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/bits/basic_string.h \
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/bits/basic_string.tcc \
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/bits/locale_classes.tcc \
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/streambuf \
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/bits/streambuf.tcc \
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/bits/basic_ios.h \
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/bits/locale_facets.h \
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/cwctype \
/usr/include/wctype.h \
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/x86_64-redhat-linux/bits/ctype_base.h \
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/bits/streambuf_iterator.h \
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/x86_64-redhat-linux/bits/ctype_inline.h \
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/bits/locale_facets.tcc \
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/bits/basic_ios.tcc \
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/bits/ostream.tcc \
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/istream \
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/bits/istream.tcc \
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/bits/stream_iterator.h \
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/vector \
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/bits/stl_vector.h \
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/bits/stl_bvector.h \
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/bits/vector.tcc \
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/deque \
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/bits/stl_deque.h \
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/bits/deque.tcc \
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/list \
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/bits/stl_list.h \
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/bits/list.tcc \
/usr/include/glib-2.0/glib-object.h \
/usr/include/glib-2.0/gobject/gboxed.h \
/usr/include/glib-2.0/gobject/gtype.h /usr/include/glib-2.0/glib.h \
/usr/include/glib-2.0/glib/galloca.h \
/usr/include/glib-2.0/glib/gtypes.h \
/usr/lib64/glib-2.0/include/glibconfig.h \
/usr/include/glib-2.0/glib/gmacros.h \
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/include/limits.h \
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/include/syslimits.h \
/usr/include/limits.h /usr/include/bits/posix1_lim.h \
/usr/include/bits/local_lim.h /usr/include/linux/limits.h \
/usr/include/bits/posix2_lim.h /usr/include/bits/xopen_lim.h \
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/include/float.h \
/usr/include/glib-2.0/glib/garray.h \
/usr/include/glib-2.0/glib/gasyncqueue.h \
/usr/include/glib-2.0/glib/gthread.h \
/usr/include/glib-2.0/glib/gerror.h /usr/include/glib-2.0/glib/gquark.h \
/usr/include/glib-2.0/glib/gutils.h \
/usr/include/glib-2.0/glib/gatomic.h \
/usr/include/glib-2.0/glib/gbacktrace.h /usr/include/bits/signum.h \
/usr/include/bits/siginfo.h /usr/include/bits/sigaction.h \
/usr/include/bits/sigcontext.h /usr/include/bits/sigstack.h \
/usr/include/sys/ucontext.h /usr/include/bits/sigthread.h \
/usr/include/glib-2.0/glib/gbase64.h \
/usr/include/glib-2.0/glib/gbookmarkfile.h \
/usr/include/glib-2.0/glib/gcache.h /usr/include/glib-2.0/glib/glist.h \
/usr/include/glib-2.0/glib/gmem.h /usr/include/glib-2.0/glib/gslice.h \
/usr/include/glib-2.0/glib/gchecksum.h \
/usr/include/glib-2.0/glib/gcompletion.h \
/usr/include/glib-2.0/glib/gconvert.h \
/usr/include/glib-2.0/glib/gdataset.h \
/usr/include/glib-2.0/glib/gdate.h /usr/include/glib-2.0/glib/gdir.h \
/usr/include/glib-2.0/glib/gfileutils.h \
/usr/include/glib-2.0/glib/ghash.h /usr/include/glib-2.0/glib/ghook.h \
/usr/include/glib-2.0/glib/giochannel.h \
/usr/include/glib-2.0/glib/gmain.h /usr/include/glib-2.0/glib/gslist.h \
/usr/include/glib-2.0/glib/gstring.h \
/usr/include/glib-2.0/glib/gunicode.h \
/usr/include/glib-2.0/glib/gkeyfile.h \
/usr/include/glib-2.0/glib/gmappedfile.h \
/usr/include/glib-2.0/glib/gmarkup.h \
/usr/include/glib-2.0/glib/gmessages.h \
/usr/include/glib-2.0/glib/gnode.h /usr/include/glib-2.0/glib/goption.h \
/usr/include/glib-2.0/glib/gpattern.h \
/usr/include/glib-2.0/glib/gprimes.h \
/usr/include/glib-2.0/glib/gqsort.h /usr/include/glib-2.0/glib/gqueue.h \
/usr/include/glib-2.0/glib/grand.h /usr/include/glib-2.0/glib/grel.h \
/usr/include/glib-2.0/glib/gregex.h \
/usr/include/glib-2.0/glib/gscanner.h \
/usr/include/glib-2.0/glib/gsequence.h \
/usr/include/glib-2.0/glib/gshell.h /usr/include/glib-2.0/glib/gspawn.h \
/usr/include/glib-2.0/glib/gstrfuncs.h \
/usr/include/glib-2.0/glib/gtestutils.h \
/usr/include/glib-2.0/glib/gthreadpool.h \
/usr/include/glib-2.0/glib/gtimer.h /usr/include/glib-2.0/glib/gtree.h \
/usr/include/glib-2.0/glib/gurifuncs.h \
/usr/include/glib-2.0/gobject/genums.h \
/usr/include/glib-2.0/gobject/gobject.h \
/usr/include/glib-2.0/gobject/gvalue.h \
/usr/include/glib-2.0/gobject/gparam.h \
/usr/include/glib-2.0/gobject/gclosure.h \
/usr/include/glib-2.0/gobject/gsignal.h \
/usr/include/glib-2.0/gobject/gmarshal.h \
/usr/include/glib-2.0/gobject/gparamspecs.h \
/usr/include/glib-2.0/gobject/gsourceclosure.h \
/usr/include/glib-2.0/gobject/gtypemodule.h \
/usr/include/glib-2.0/gobject/gtypeplugin.h \
/usr/include/glib-2.0/gobject/gvaluearray.h \
/usr/include/glib-2.0/gobject/gvaluetypes.h ../../glib/glibmm/refptr.h \
../../glib/glibmm/ustring.h ../../glib/glibmm/unicode.h \
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/sstream \
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/bits/sstream.tcc \
../../glib/glibmm/wrap.h ../../glib/glibmm/objectbase.h \
../../glib/glibmm/signalproxy.h /usr/include/sigc++-2.0/sigc++/sigc++.h \
/usr/include/sigc++-2.0/sigc++/signal.h \
/usr/include/sigc++-2.0/sigc++/signal_base.h \
/usr/lib64/sigc++-2.0/include/sigc++config.h \
/usr/include/sigc++-2.0/sigc++/type_traits.h \
/usr/include/sigc++-2.0/sigc++/trackable.h \
/usr/include/sigc++-2.0/sigc++/functors/slot.h \
/usr/include/sigc++-2.0/sigc++/visit_each.h \
/usr/include/sigc++-2.0/sigc++/adaptors/adaptor_trait.h \
/usr/include/sigc++-2.0/sigc++/functors/functor_trait.h \
/usr/include/sigc++-2.0/sigc++/functors/ptr_fun.h \
/usr/include/sigc++-2.0/sigc++/functors/mem_fun.h \
/usr/include/sigc++-2.0/sigc++/limit_reference.h \
/usr/include/sigc++-2.0/sigc++/adaptors/deduce_result_type.h \
/usr/include/sigc++-2.0/sigc++/functors/slot_base.h \
/usr/include/sigc++-2.0/sigc++/connection.h \
/usr/include/sigc++-2.0/sigc++/adaptors/adaptors.h \
/usr/include/sigc++-2.0/sigc++/adaptors/bind.h \
/usr/include/sigc++-2.0/sigc++/adaptors/bound_argument.h \
/usr/include/sigc++-2.0/sigc++/reference_wrapper.h \
/usr/include/sigc++-2.0/sigc++/adaptors/bind_return.h \
/usr/include/sigc++-2.0/sigc++/adaptors/hide.h \
/usr/include/sigc++-2.0/sigc++/adaptors/retype_return.h \
/usr/include/sigc++-2.0/sigc++/adaptors/retype.h \
/usr/include/sigc++-2.0/sigc++/adaptors/compose.h \
/usr/include/sigc++-2.0/sigc++/adaptors/exception_catch.h \
/usr/include/sigc++-2.0/sigc++/adaptors/lambda/lambda.h \
/usr/include/sigc++-2.0/sigc++/adaptors/lambda/base.h \
/usr/include/sigc++-2.0/sigc++/adaptors/lambda/select.h \
/usr/include/sigc++-2.0/sigc++/adaptors/lambda/operator.h \
/usr/include/sigc++-2.0/sigc++/adaptors/lambda/group.h \
/usr/include/sigc++-2.0/sigc++/functors/functors.h \
../../glib/glibmm/signalproxy_connectionnode.h \
../../glib/glibmm/propertyproxy.h \
../../glib/glibmm/propertyproxy_base.h ../../glib/glibmm/value.h \
../../glib/glibmm/value_custom.h \
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/typeinfo \
../../glib/glibmm/value_basictypes.h ../../glib/glibmm/quark.h \
../../glib/glibmm/debug.h ../../glib/glibmm/checksum.h \
../../glib/glibmm/class.h ../../glib/glibmm/convert.h \
../../glib/glibmm/error.h ../../glib/glibmm/exception.h \
../../glib/glibmm/date.h ../../glib/glibmm/dispatcher.h \
../../glib/glibmm/main.h ../../glib/glibmm/timeval.h \
../../glib/glibmm/priorities.h ../../glib/glibmm/exceptionhandler.h \
../../glib/glibmm/fileutils.h ../../glib/glibmm/helperlist.h \
../../glib/glibmm/containers.h ../../glib/glibmm/sarray.h \
../../glib/glibmm/interface.h ../../glib/glibmm/object.h \
../../glib/glibmm/utility.h ../../glib/glibmm/iochannel.h \
../../glib/glibmm/init.h ../../glib/glibmm/keyfile.h \
../../glib/glibmm/streamiochannel.h ../../glib/glibmm/listhandle.h \
../../glib/glibmm/markup.h \
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/map \
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/bits/stl_tree.h \
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/bits/stl_map.h \
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/bits/stl_multimap.h \
../../glib/glibmm/miscutils.h ../../glib/glibmm/module.h \
../../glib/glibmm/nodetree.h \
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/stack \
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/bits/stl_stack.h \
../../glib/glibmm/optioncontext.h ../../glib/glibmm/optionentry.h \
../../glib/glibmm/optiongroup.h ../../glib/glibmm/pattern.h \
../../glib/glibmm/property.h ../../glib/glibmm/random.h \
../../glib/glibmm/regex.h ../../glib/glibmm/shell.h \
../../glib/glibmm/slisthandle.h ../../glib/glibmm/spawn.h \
../../glib/glibmm/stringutils.h ../../glib/glibmm/thread.h \
../../glib/glibmm/threadpool.h ../../glib/glibmm/timer.h \
../../glib/glibmm/uriutils.h
init.h:
wrap_init.h:
../../glib/glibmm.h:
../../glib/glibmmconfig.h:
../../glib/glibmm/arrayhandle.h:
../../glib/glibmm/containerhandle_shared.h:
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/cstddef:
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/x86_64-redhat-linux/bits/c++config.h:
/usr/include/bits/wordsize.h:
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/x86_64-redhat-linux/bits/os_defines.h:
/usr/include/features.h:
/usr/include/sys/cdefs.h:
/usr/include/gnu/stubs.h:
/usr/include/gnu/stubs-64.h:
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/x86_64-redhat-linux/bits/cpu_defines.h:
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/include/stddef.h:
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/algorithm:
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/bits/stl_algobase.h:
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/bits/functexcept.h:
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/exception_defines.h:
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/bits/cpp_type_traits.h:
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/ext/type_traits.h:
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/ext/numeric_traits.h:
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/bits/stl_pair.h:
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/bits/stl_move.h:
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/bits/concept_check.h:
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/bits/stl_iterator_base_types.h:
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/bits/stl_iterator_base_funcs.h:
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/bits/stl_iterator.h:
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/debug/debug.h:
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/bits/stl_algo.h:
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/cstdlib:
/usr/include/stdlib.h:
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/include/stddef.h:
/usr/include/bits/waitflags.h:
/usr/include/bits/waitstatus.h:
/usr/include/endian.h:
/usr/include/bits/endian.h:
/usr/include/bits/byteswap.h:
/usr/include/xlocale.h:
/usr/include/sys/types.h:
/usr/include/bits/types.h:
/usr/include/bits/typesizes.h:
/usr/include/time.h:
/usr/include/sys/select.h:
/usr/include/bits/select.h:
/usr/include/bits/sigset.h:
/usr/include/bits/time.h:
/usr/include/sys/sysmacros.h:
/usr/include/bits/pthreadtypes.h:
/usr/include/alloca.h:
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/bits/algorithmfwd.h:
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/bits/stl_heap.h:
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/bits/stl_tempbuf.h:
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/bits/stl_construct.h:
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/new:
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/exception:
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/bits/stl_uninitialized.h:
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/iterator:
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/ostream:
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/ios:
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/iosfwd:
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/bits/stringfwd.h:
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/bits/postypes.h:
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/cwchar:
/usr/include/wchar.h:
/usr/include/stdio.h:
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/include/stdarg.h:
/usr/include/bits/wchar.h:
/usr/include/stdint.h:
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/bits/char_traits.h:
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/cstdio:
/usr/include/stdio.h:
/usr/include/libio.h:
/usr/include/_G_config.h:
/usr/include/wchar.h:
/usr/include/bits/stdio_lim.h:
/usr/include/bits/sys_errlist.h:
/usr/include/bits/stdio.h:
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/bits/localefwd.h:
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/x86_64-redhat-linux/bits/c++locale.h:
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/clocale:
/usr/include/locale.h:
/usr/include/bits/locale.h:
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/cctype:
/usr/include/ctype.h:
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/bits/ios_base.h:
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/ext/atomicity.h:
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/x86_64-redhat-linux/bits/gthr.h:
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/x86_64-redhat-linux/bits/gthr-default.h:
/usr/include/pthread.h:
/usr/include/sched.h:
/usr/include/bits/sched.h:
/usr/include/signal.h:
/usr/include/bits/setjmp.h:
/usr/include/unistd.h:
/usr/include/bits/posix_opt.h:
/usr/include/bits/environments.h:
/usr/include/bits/confname.h:
/usr/include/getopt.h:
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/x86_64-redhat-linux/bits/atomic_word.h:
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/bits/locale_classes.h:
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/string:
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/bits/allocator.h:
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/x86_64-redhat-linux/bits/c++allocator.h:
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/ext/new_allocator.h:
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/bits/ostream_insert.h:
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/cxxabi-forced.h:
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/bits/stl_function.h:
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/backward/binders.h:
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/bits/basic_string.h:
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/bits/basic_string.tcc:
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/bits/locale_classes.tcc:
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/streambuf:
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/bits/streambuf.tcc:
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/bits/basic_ios.h:
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/bits/locale_facets.h:
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/cwctype:
/usr/include/wctype.h:
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/x86_64-redhat-linux/bits/ctype_base.h:
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/bits/streambuf_iterator.h:
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/x86_64-redhat-linux/bits/ctype_inline.h:
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/bits/locale_facets.tcc:
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/bits/basic_ios.tcc:
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/bits/ostream.tcc:
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/istream:
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/bits/istream.tcc:
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/bits/stream_iterator.h:
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/vector:
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/bits/stl_vector.h:
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/bits/stl_bvector.h:
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/bits/vector.tcc:
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/deque:
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/bits/stl_deque.h:
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/bits/deque.tcc:
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/list:
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/bits/stl_list.h:
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/bits/list.tcc:
/usr/include/glib-2.0/glib-object.h:
/usr/include/glib-2.0/gobject/gboxed.h:
/usr/include/glib-2.0/gobject/gtype.h:
/usr/include/glib-2.0/glib.h:
/usr/include/glib-2.0/glib/galloca.h:
/usr/include/glib-2.0/glib/gtypes.h:
/usr/lib64/glib-2.0/include/glibconfig.h:
/usr/include/glib-2.0/glib/gmacros.h:
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/include/limits.h:
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/include/syslimits.h:
/usr/include/limits.h:
/usr/include/bits/posix1_lim.h:
/usr/include/bits/local_lim.h:
/usr/include/linux/limits.h:
/usr/include/bits/posix2_lim.h:
/usr/include/bits/xopen_lim.h:
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/include/float.h:
/usr/include/glib-2.0/glib/garray.h:
/usr/include/glib-2.0/glib/gasyncqueue.h:
/usr/include/glib-2.0/glib/gthread.h:
/usr/include/glib-2.0/glib/gerror.h:
/usr/include/glib-2.0/glib/gquark.h:
/usr/include/glib-2.0/glib/gutils.h:
/usr/include/glib-2.0/glib/gatomic.h:
/usr/include/glib-2.0/glib/gbacktrace.h:
/usr/include/bits/signum.h:
/usr/include/bits/siginfo.h:
/usr/include/bits/sigaction.h:
/usr/include/bits/sigcontext.h:
/usr/include/bits/sigstack.h:
/usr/include/sys/ucontext.h:
/usr/include/bits/sigthread.h:
/usr/include/glib-2.0/glib/gbase64.h:
/usr/include/glib-2.0/glib/gbookmarkfile.h:
/usr/include/glib-2.0/glib/gcache.h:
/usr/include/glib-2.0/glib/glist.h:
/usr/include/glib-2.0/glib/gmem.h:
/usr/include/glib-2.0/glib/gslice.h:
/usr/include/glib-2.0/glib/gchecksum.h:
/usr/include/glib-2.0/glib/gcompletion.h:
/usr/include/glib-2.0/glib/gconvert.h:
/usr/include/glib-2.0/glib/gdataset.h:
/usr/include/glib-2.0/glib/gdate.h:
/usr/include/glib-2.0/glib/gdir.h:
/usr/include/glib-2.0/glib/gfileutils.h:
/usr/include/glib-2.0/glib/ghash.h:
/usr/include/glib-2.0/glib/ghook.h:
/usr/include/glib-2.0/glib/giochannel.h:
/usr/include/glib-2.0/glib/gmain.h:
/usr/include/glib-2.0/glib/gslist.h:
/usr/include/glib-2.0/glib/gstring.h:
/usr/include/glib-2.0/glib/gunicode.h:
/usr/include/glib-2.0/glib/gkeyfile.h:
/usr/include/glib-2.0/glib/gmappedfile.h:
/usr/include/glib-2.0/glib/gmarkup.h:
/usr/include/glib-2.0/glib/gmessages.h:
/usr/include/glib-2.0/glib/gnode.h:
/usr/include/glib-2.0/glib/goption.h:
/usr/include/glib-2.0/glib/gpattern.h:
/usr/include/glib-2.0/glib/gprimes.h:
/usr/include/glib-2.0/glib/gqsort.h:
/usr/include/glib-2.0/glib/gqueue.h:
/usr/include/glib-2.0/glib/grand.h:
/usr/include/glib-2.0/glib/grel.h:
/usr/include/glib-2.0/glib/gregex.h:
/usr/include/glib-2.0/glib/gscanner.h:
/usr/include/glib-2.0/glib/gsequence.h:
/usr/include/glib-2.0/glib/gshell.h:
/usr/include/glib-2.0/glib/gspawn.h:
/usr/include/glib-2.0/glib/gstrfuncs.h:
/usr/include/glib-2.0/glib/gtestutils.h:
/usr/include/glib-2.0/glib/gthreadpool.h:
/usr/include/glib-2.0/glib/gtimer.h:
/usr/include/glib-2.0/glib/gtree.h:
/usr/include/glib-2.0/glib/gurifuncs.h:
/usr/include/glib-2.0/gobject/genums.h:
/usr/include/glib-2.0/gobject/gobject.h:
/usr/include/glib-2.0/gobject/gvalue.h:
/usr/include/glib-2.0/gobject/gparam.h:
/usr/include/glib-2.0/gobject/gclosure.h:
/usr/include/glib-2.0/gobject/gsignal.h:
/usr/include/glib-2.0/gobject/gmarshal.h:
/usr/include/glib-2.0/gobject/gparamspecs.h:
/usr/include/glib-2.0/gobject/gsourceclosure.h:
/usr/include/glib-2.0/gobject/gtypemodule.h:
/usr/include/glib-2.0/gobject/gtypeplugin.h:
/usr/include/glib-2.0/gobject/gvaluearray.h:
/usr/include/glib-2.0/gobject/gvaluetypes.h:
../../glib/glibmm/refptr.h:
../../glib/glibmm/ustring.h:
../../glib/glibmm/unicode.h:
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/sstream:
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/bits/sstream.tcc:
../../glib/glibmm/wrap.h:
../../glib/glibmm/objectbase.h:
../../glib/glibmm/signalproxy.h:
/usr/include/sigc++-2.0/sigc++/sigc++.h:
/usr/include/sigc++-2.0/sigc++/signal.h:
/usr/include/sigc++-2.0/sigc++/signal_base.h:
/usr/lib64/sigc++-2.0/include/sigc++config.h:
/usr/include/sigc++-2.0/sigc++/type_traits.h:
/usr/include/sigc++-2.0/sigc++/trackable.h:
/usr/include/sigc++-2.0/sigc++/functors/slot.h:
/usr/include/sigc++-2.0/sigc++/visit_each.h:
/usr/include/sigc++-2.0/sigc++/adaptors/adaptor_trait.h:
/usr/include/sigc++-2.0/sigc++/functors/functor_trait.h:
/usr/include/sigc++-2.0/sigc++/functors/ptr_fun.h:
/usr/include/sigc++-2.0/sigc++/functors/mem_fun.h:
/usr/include/sigc++-2.0/sigc++/limit_reference.h:
/usr/include/sigc++-2.0/sigc++/adaptors/deduce_result_type.h:
/usr/include/sigc++-2.0/sigc++/functors/slot_base.h:
/usr/include/sigc++-2.0/sigc++/connection.h:
/usr/include/sigc++-2.0/sigc++/adaptors/adaptors.h:
/usr/include/sigc++-2.0/sigc++/adaptors/bind.h:
/usr/include/sigc++-2.0/sigc++/adaptors/bound_argument.h:
/usr/include/sigc++-2.0/sigc++/reference_wrapper.h:
/usr/include/sigc++-2.0/sigc++/adaptors/bind_return.h:
/usr/include/sigc++-2.0/sigc++/adaptors/hide.h:
/usr/include/sigc++-2.0/sigc++/adaptors/retype_return.h:
/usr/include/sigc++-2.0/sigc++/adaptors/retype.h:
/usr/include/sigc++-2.0/sigc++/adaptors/compose.h:
/usr/include/sigc++-2.0/sigc++/adaptors/exception_catch.h:
/usr/include/sigc++-2.0/sigc++/adaptors/lambda/lambda.h:
/usr/include/sigc++-2.0/sigc++/adaptors/lambda/base.h:
/usr/include/sigc++-2.0/sigc++/adaptors/lambda/select.h:
/usr/include/sigc++-2.0/sigc++/adaptors/lambda/operator.h:
/usr/include/sigc++-2.0/sigc++/adaptors/lambda/group.h:
/usr/include/sigc++-2.0/sigc++/functors/functors.h:
../../glib/glibmm/signalproxy_connectionnode.h:
../../glib/glibmm/propertyproxy.h:
../../glib/glibmm/propertyproxy_base.h:
../../glib/glibmm/value.h:
../../glib/glibmm/value_custom.h:
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/typeinfo:
../../glib/glibmm/value_basictypes.h:
../../glib/glibmm/quark.h:
../../glib/glibmm/debug.h:
../../glib/glibmm/checksum.h:
../../glib/glibmm/class.h:
../../glib/glibmm/convert.h:
../../glib/glibmm/error.h:
../../glib/glibmm/exception.h:
../../glib/glibmm/date.h:
../../glib/glibmm/dispatcher.h:
../../glib/glibmm/main.h:
../../glib/glibmm/timeval.h:
../../glib/glibmm/priorities.h:
../../glib/glibmm/exceptionhandler.h:
../../glib/glibmm/fileutils.h:
../../glib/glibmm/helperlist.h:
../../glib/glibmm/containers.h:
../../glib/glibmm/sarray.h:
../../glib/glibmm/interface.h:
../../glib/glibmm/object.h:
../../glib/glibmm/utility.h:
../../glib/glibmm/iochannel.h:
../../glib/glibmm/init.h:
../../glib/glibmm/keyfile.h:
../../glib/glibmm/streamiochannel.h:
../../glib/glibmm/listhandle.h:
../../glib/glibmm/markup.h:
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/map:
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/bits/stl_tree.h:
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/bits/stl_map.h:
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/bits/stl_multimap.h:
../../glib/glibmm/miscutils.h:
../../glib/glibmm/module.h:
../../glib/glibmm/nodetree.h:
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/stack:
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/bits/stl_stack.h:
../../glib/glibmm/optioncontext.h:
../../glib/glibmm/optionentry.h:
../../glib/glibmm/optiongroup.h:
../../glib/glibmm/pattern.h:
../../glib/glibmm/property.h:
../../glib/glibmm/random.h:
../../glib/glibmm/regex.h:
../../glib/glibmm/shell.h:
../../glib/glibmm/slisthandle.h:
../../glib/glibmm/spawn.h:
../../glib/glibmm/stringutils.h:
../../glib/glibmm/thread.h:
../../glib/glibmm/threadpool.h:
../../glib/glibmm/timer.h:
../../glib/glibmm/uriutils.h:

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,813 @@
# Makefile.in generated by automake 1.10.1 from Makefile.am.
# gio/giomm/Makefile. Generated from Makefile.in by configure.
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE.
# Built files
pkgdatadir = $(datadir)/glibmm
pkglibdir = $(libdir)/glibmm
pkgincludedir = $(includedir)/glibmm
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
install_sh_DATA = $(install_sh) -c -m 644
install_sh_PROGRAM = $(install_sh) -c
install_sh_SCRIPT = $(install_sh) -c
INSTALL_HEADER = $(INSTALL_DATA)
transform = $(program_transform_name)
NORMAL_INSTALL = :
PRE_INSTALL = :
POST_INSTALL = :
NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
build_triplet = x86_64-unknown-linux-gnu
host_triplet = x86_64-unknown-linux-gnu
DIST_COMMON = $(srcdir)/../src/Makefile_list_of_hg.am_fragment \
$(srcdir)/Makefile.am $(srcdir)/Makefile.in \
$(sublib_include_HEADERS) \
$(top_srcdir)/build_shared/Makefile_build.am_fragment \
$(top_srcdir)/build_shared/Makefile_build_gensrc.am_fragment
subdir = gio/giomm
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
am__aclocal_m4_deps = $(top_srcdir)/scripts/c_std.m4 \
$(top_srcdir)/scripts/cxx.m4 $(top_srcdir)/scripts/cxx_std.m4 \
$(top_srcdir)/scripts/dk-feature.m4 \
$(top_srcdir)/scripts/docgen.m4 \
$(top_srcdir)/scripts/glibmm_check_perl.m4 \
$(top_srcdir)/scripts/macros.m4 \
$(top_srcdir)/scripts/reduced.m4 $(top_srcdir)/scripts/sun.m4 \
$(top_srcdir)/configure.in
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
$(ACLOCAL_M4)
mkinstalldirs = $(install_sh) -d
CONFIG_HEADER = $(top_builddir)/config.h \
$(top_builddir)/glib/glibmmconfig.h \
$(top_builddir)/gio/giommconfig.h
CONFIG_CLEAN_FILES =
am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
am__vpath_adj = case $$p in \
$(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
*) f=$$p;; \
esac;
am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
am__installdirs = "$(DESTDIR)$(libdir)" \
"$(DESTDIR)$(sublib_includedir)"
libLTLIBRARIES_INSTALL = $(INSTALL)
LTLIBRARIES = $(lib_LTLIBRARIES)
am__DEPENDENCIES_1 =
libgiomm_2_4_la_DEPENDENCIES = $(am__DEPENDENCIES_1) \
$(top_builddir)/glib/glibmm/libglibmm-2.4.la
am__libgiomm_2_4_la_SOURCES_DIST = appinfo.cc asyncresult.cc \
cancellable.cc drive.cc error.cc file.cc fileattributeinfo.cc \
fileattributeinfolist.cc fileenumerator.cc fileicon.cc \
fileinfo.cc fileinputstream.cc fileoutputstream.cc \
filemonitor.cc filterinputstream.cc filteroutputstream.cc \
filenamecompleter.cc icon.cc inputstream.cc loadableicon.cc \
mount.cc mountoperation.cc outputstream.cc seekable.cc \
volume.cc volumemonitor.cc bufferedinputstream.cc \
bufferedoutputstream.cc datainputstream.cc dataoutputstream.cc \
enums.cc memoryinputstream.cc themedicon.cc unixinputstream.cc \
unixoutputstream.cc desktopappinfo.cc wrap_init.cc init.cc \
contenttype.cc slot_async.cc
am__objects_1 = appinfo.lo asyncresult.lo cancellable.lo drive.lo \
error.lo file.lo fileattributeinfo.lo fileattributeinfolist.lo \
fileenumerator.lo fileicon.lo fileinfo.lo fileinputstream.lo \
fileoutputstream.lo filemonitor.lo filterinputstream.lo \
filteroutputstream.lo filenamecompleter.lo icon.lo \
inputstream.lo loadableicon.lo mount.lo mountoperation.lo \
outputstream.lo seekable.lo volume.lo volumemonitor.lo \
bufferedinputstream.lo bufferedoutputstream.lo \
datainputstream.lo dataoutputstream.lo enums.lo \
memoryinputstream.lo themedicon.lo
am__objects_2 = unixinputstream.lo unixoutputstream.lo \
desktopappinfo.lo
am__objects_3 =
am__objects_4 = $(am__objects_1) $(am__objects_2)
#am__objects_4 = $(am__objects_1) $(am__objects_3)
am__objects_5 = $(am__objects_4) wrap_init.lo
am__objects_6 = init.lo contenttype.lo slot_async.lo
am__objects_7 = $(am__objects_3) $(am__objects_6)
#am__objects_7 = $(am__objects_3) $(am__objects_6)
am_libgiomm_2_4_la_OBJECTS = $(am__objects_5) $(am__objects_7)
libgiomm_2_4_la_OBJECTS = $(am_libgiomm_2_4_la_OBJECTS)
libgiomm_2_4_la_LINK = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) \
$(LIBTOOLFLAGS) --mode=link $(CXXLD) $(AM_CXXFLAGS) \
$(CXXFLAGS) $(libgiomm_2_4_la_LDFLAGS) $(LDFLAGS) -o $@
depcomp = $(SHELL) $(top_srcdir)/scripts/depcomp
am__depfiles_maybe = depfiles
CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
$(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
LTCXXCOMPILE = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
--mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
$(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
CXXLD = $(CXX)
CXXLINK = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
--mode=link $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) \
$(LDFLAGS) -o $@
SOURCES = $(libgiomm_2_4_la_SOURCES)
DIST_SOURCES = $(am__libgiomm_2_4_la_SOURCES_DIST)
RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
html-recursive info-recursive install-data-recursive \
install-dvi-recursive install-exec-recursive \
install-html-recursive install-info-recursive \
install-pdf-recursive install-ps-recursive install-recursive \
installcheck-recursive installdirs-recursive pdf-recursive \
ps-recursive uninstall-recursive
sublib_includeHEADERS_INSTALL = $(INSTALL_HEADER)
HEADERS = $(sublib_include_HEADERS)
RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
distclean-recursive maintainer-clean-recursive
ETAGS = etags
CTAGS = ctags
DIST_SUBDIRS = $(SUBDIRS)
ACLOCAL = ${SHELL} /tmp/glibmm-2.18.2/scripts/missing --run aclocal-1.10 -I ./scripts
AMTAR = ${SHELL} /tmp/glibmm-2.18.2/scripts/missing --run tar
AR = ar
AS = as
AUTOCONF = ${SHELL} /tmp/glibmm-2.18.2/scripts/missing --run autoconf
AUTOHEADER = :
AUTOMAKE = ${SHELL} /tmp/glibmm-2.18.2/scripts/missing --run automake-1.10
AWK = gawk
CC = gcc
CCDEPMODE = depmode=gcc3
CFLAGS = -g -O2
CPP = gcc -E
CPPFLAGS =
CXX = g++
CXXCPP = g++ -E
CXXDEPMODE = depmode=gcc3
CXXFLAGS = -g -O2 -Wall -Wno-long-long
CYGPATH_W = echo
DEFS = -DHAVE_CONFIG_H -DG_LOG_DOMAIN=\"$(sublib_name)\" $(extra_win32_defines)
DEPDIR = .deps
DISABLE_DEPRECATED_API_CFLAGS =
DISABLE_DEPRECATED_CFLAGS =
DLLTOOL = dlltool
DSYMUTIL =
ECHO = echo
ECHO_C =
ECHO_N = -n
ECHO_T =
EGREP = /bin/grep -E
EXEEXT =
F77 = gfortran
FFLAGS = -g -O2
GIOMM_CFLAGS = -I/usr/include/sigc++-2.0 -I/usr/lib64/sigc++-2.0/include -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/gio-unix-2.0/
GIOMM_LIBS = -Wl,--export-dynamic -lsigc-2.0 -lgio-2.0 -lgobject-2.0 -lgmodule-2.0 -lglib-2.0
GLIBMM_CFLAGS = -I/usr/include/sigc++-2.0 -I/usr/lib64/sigc++-2.0/include -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include
GLIBMM_LIBS = -Wl,--export-dynamic -lsigc-2.0 -lgobject-2.0 -lgmodule-2.0 -lglib-2.0
GLIBMM_MAJOR_VERSION = 2
GLIBMM_MICRO_VERSION = 2
GLIBMM_MINOR_VERSION = 18
GLIBMM_RELEASE = 2.18
GLIBMM_VERSION = 2.18.2
GMMPROC_DIR = ${exec_prefix}/lib/glibmm-2.4/proc
GREP = /bin/grep
GTHREAD_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include
GTHREAD_LIBS = -pthread -lgthread-2.0 -lrt -lglib-2.0
GTKMMPROC_MERGECDOCS =
GTKMM_DOXYGEN_INPUT = /tmp/glibmm-2.18.2/glib/glibmm/ /tmp/glibmm-2.18.2/gio/giomm/
INSTALL = /usr/bin/install -c
INSTALL_DATA = ${INSTALL} -m 644
INSTALL_PROGRAM = ${INSTALL}
INSTALL_SCRIPT = ${INSTALL}
INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
LDFLAGS =
LIBGLIBMM_SO_VERSION = 3:0:2
LIBOBJS =
LIBS =
LIBTOOL = $(SHELL) $(top_builddir)/libtool
LN_S = ln -s
LTLIBOBJS =
M4 = m4
MAINT = #
MAKEINFO = ${SHELL} /tmp/glibmm-2.18.2/scripts/missing --run makeinfo
MKDIR_P = /bin/mkdir -p
NMEDIT =
OBJDUMP = objdump
OBJEXT = o
PACKAGE = glibmm
PACKAGE_BUGREPORT = gtkmm-list@gnome.org
PACKAGE_NAME = glibmm
PACKAGE_STRING = glibmm 2.18.2
PACKAGE_TARNAME = glibmm
PACKAGE_VERSION = 2.18.2
PATH_SEPARATOR = :
PERL_PATH = /usr/bin/perl
PKG_CONFIG = /usr/bin/pkg-config
RANLIB = ranlib
SED = /bin/sed
SET_MAKE =
SHELL = /bin/sh
STRIP = strip
VERSION = 2.18.2
abs_builddir = /tmp/glibmm-2.18.2/gio/giomm
abs_srcdir = /tmp/glibmm-2.18.2/gio/giomm
abs_top_builddir = /tmp/glibmm-2.18.2
abs_top_srcdir = /tmp/glibmm-2.18.2
ac_ct_CC = gcc
ac_ct_CXX = g++
ac_ct_F77 = gfortran
am__include = include
am__leading_dot = .
am__quote =
am__tar = ${AMTAR} chof - "$$tardir"
am__untar = ${AMTAR} xf -
bindir = ${exec_prefix}/bin
build = x86_64-unknown-linux-gnu
build_alias =
build_cpu = x86_64
build_os = linux-gnu
build_vendor = unknown
builddir = .
datadir = ${datarootdir}
datarootdir = ${prefix}/share
docdir = ${datarootdir}/doc/${PACKAGE_TARNAME}
dvidir = ${docdir}
exec_prefix = ${prefix}
host = x86_64-unknown-linux-gnu
host_alias =
host_cpu = x86_64
host_os = linux-gnu
host_vendor = unknown
htmldir = ${docdir}
includedir = ${prefix}/include
infodir = ${datarootdir}/info
install_sh = $(SHELL) /tmp/glibmm-2.18.2/scripts/install-sh
libdir = ${exec_prefix}/lib
libexecdir = ${exec_prefix}/libexec
localedir = ${datarootdir}/locale
localstatedir = ${prefix}/var
mandir = ${datarootdir}/man
mkdir_p = /bin/mkdir -p
oldincludedir = /usr/include
pdfdir = ${docdir}
prefix = /usr/local
program_transform_name = s,x,x,
psdir = ${docdir}
sbindir = ${exec_prefix}/sbin
sharedstatedir = ${prefix}/com
srcdir = .
sysconfdir = ${prefix}/etc
target_alias =
top_build_prefix = ../../
top_builddir = ../..
top_srcdir = ../..
SUBDIRS = private
sublib_name = giomm
sublib_libname = giomm-2.4
sublib_libversion = $(LIBGLIBMM_SO_VERSION)
sublib_namespace = Gio
sublib_cflags = $(GIOMM_CFLAGS)
sublib_topdir = gio
sublib_win32_dlls_libs =
sublib_files_extra_posix_cc =
sublib_files_extra_win32_cc =
sublib_files_extra_general_cc = init.cc contenttype.cc slot_async.cc
sublib_files_extra_general_deprecated_cc =
sublib_files_extra_posix_h =
sublib_files_extra_win32_h =
sublib_files_extra_general_h = init.h contenttype.h
sublib_files_extra_general_deprecated_h =
files_posix_hg = unixinputstream.hg unixoutputstream.hg desktopappinfo.hg
files_win32_hg =
files_general_hg = appinfo.hg asyncresult.hg cancellable.hg drive.hg error.hg file.hg fileattributeinfo.hg \
fileattributeinfolist.hg fileenumerator.hg fileicon.hg fileinfo.hg fileinputstream.hg fileoutputstream.hg \
filemonitor.hg filterinputstream.hg filteroutputstream.hg filenamecompleter.hg \
icon.hg inputstream.hg loadableicon.hg mount.hg mountoperation.hg outputstream.hg \
seekable.hg volume.hg volumemonitor.hg bufferedinputstream.hg \
bufferedoutputstream.hg datainputstream.hg dataoutputstream.hg enums.hg \
memoryinputstream.hg themedicon.hg
files_all_hg = \
$(files_posix_hg) \
$(files_win32_hg) \
$(files_general_hg) \
$(files_general_deprecated_hg)
files_hg = $(files_general_hg) $(files_posix_hg) $(files_general_deprecated_hg)
#files_hg = $(files_general_hg) $(files_win32_hg) $(files_general_deprecated_hg)
files_built_cc = $(files_hg:.hg=.cc) wrap_init.cc
files_built_h = $(files_hg:.hg=.h)
files_all_built_cc = $(files_all_hg:.hg=.cc) wrap_init.cc
files_all_built_h = $(files_all_hg:.hg=.h)
# Extra files
files_all_extra_cc = \
$(sublib_files_extra_posix_cc) \
$(sublib_files_extra_win32_cc) \
$(sublib_files_extra_general_cc) \
$(sublib_files_extra_general_deprecated_cc)
files_all_extra_h = $(sublib_files_extra_posix_h) \
$(sublib_files_extra_win32_h) $(sublib_files_extra_general_h) \
$(sublib_files_extra_general_deprecated_h) wrap_init.h
files_extra_cc = \
$(sublib_files_extra_posix_cc) \
$(sublib_files_extra_general_cc)
#files_extra_cc = \
# $(sublib_files_extra_win32_cc) \
# $(sublib_files_extra_general_cc)
files_extra_h = $(sublib_files_extra_posix_h) \
$(sublib_files_extra_general_h) wrap_init.h
#files_extra_h = $(sublib_files_extra_win32_h) \
# $(sublib_files_extra_general_h) wrap_init.h
extra_win32_defines =
# Support for DLL on mingw using libtool > 1.4
# When creating DLLs on win32, we need to explicitly add a few extra
# libraries at link time to resolve symbols (remember a dll is like an
# executable).
#extra_win32_defines = \
# -D$(shell echo $(sublib_name) | tr [:lower:] [:upper:])_BUILD
no_undefined =
#no_undefined = -no-undefined -Wl,--export-all-symbols
win32_dlls_extra_libs =
#win32_dlls_extra_libs = $(sublib_win32_dlls_libs)
common_ldflags = -version-info $(sublib_libversion) $(no_undefined)
# All modules can include all other modules,
# for instance, so that gdkmm can use headers in pangomm.
all_includes = -I$(top_builddir)/$(sublib_topdir) -I$(top_srcdir)/$(sublib_topdir) \
-I$(top_builddir)/glib -I$(top_srcdir)/glib -I$(top_builddir) \
-I$(top_builddir)/gio -I$(top_srcdir)/gio \
$(sublib_cflags) $(GTHREAD_CFLAGS)
dist_sources = $(files_all_built_cc) $(files_all_extra_cc) $(files_all_built_h) $(files_all_extra_h)
DISTFILES = $(DIST_COMMON) $(dist_sources) $(TEXINFOS) $(EXTRA_DIST)
DEFAULT_INCLUDES =
# DISABLE_DEPRECATED_CFLAGS and DISABLE_DEPRECATED_API_CFLAGS are empty unless the appropriate --enable-*=no options are specified to configure:
INCLUDES = $(strip $(all_includes)) $(DISABLE_DEPRECATED_CFLAGS) $(DISABLE_DEPRECATED_API_CFLAGS)
sublib_includedir = $(includedir)/$(sublib_libname)/$(sublib_name)
sublib_include_HEADERS = $(files_all_built_h) $(files_all_extra_h)
lib_LTLIBRARIES = libgiomm-2.4.la
libgiomm_2_4_la_SOURCES = $(files_built_cc) $(files_extra_cc)
libgiomm_2_4_la_LDFLAGS = $(common_ldflags)
libgiomm_2_4_la_LIBADD = $(GIOMM_LIBS) \
$(top_builddir)/glib/glibmm/libglibmm-2.4.la
# this header should be distributed, but not installed
EXTRA_DIST = slot_async.h
all: all-recursive
.SUFFIXES:
.SUFFIXES: .cc .lo .o .obj
$(srcdir)/Makefile.in: # $(srcdir)/Makefile.am $(top_srcdir)/build_shared/Makefile_build.am_fragment $(srcdir)/../src/Makefile_list_of_hg.am_fragment $(top_srcdir)/build_shared/Makefile_build_gensrc.am_fragment $(am__configure_deps)
@for dep in $?; do \
case '$(am__configure_deps)' in \
*$$dep*) \
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
&& exit 0; \
exit 1;; \
esac; \
done; \
echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu gio/giomm/Makefile'; \
cd $(top_srcdir) && \
$(AUTOMAKE) --gnu gio/giomm/Makefile
.PRECIOUS: Makefile
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
@case '$?' in \
*config.status*) \
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
*) \
echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
esac;
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
$(top_srcdir)/configure: # $(am__configure_deps)
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
$(ACLOCAL_M4): # $(am__aclocal_m4_deps)
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
install-libLTLIBRARIES: $(lib_LTLIBRARIES)
@$(NORMAL_INSTALL)
test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(libdir)"
@list='$(lib_LTLIBRARIES)'; for p in $$list; do \
if test -f $$p; then \
f=$(am__strip_dir) \
echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(libdir)/$$f'"; \
$(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(libdir)/$$f"; \
else :; fi; \
done
uninstall-libLTLIBRARIES:
@$(NORMAL_UNINSTALL)
@list='$(lib_LTLIBRARIES)'; for p in $$list; do \
p=$(am__strip_dir) \
echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$p'"; \
$(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$p"; \
done
clean-libLTLIBRARIES:
-test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES)
@list='$(lib_LTLIBRARIES)'; for p in $$list; do \
dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
test "$$dir" != "$$p" || dir=.; \
echo "rm -f \"$${dir}/so_locations\""; \
rm -f "$${dir}/so_locations"; \
done
libgiomm-2.4.la: $(libgiomm_2_4_la_OBJECTS) $(libgiomm_2_4_la_DEPENDENCIES)
$(libgiomm_2_4_la_LINK) -rpath $(libdir) $(libgiomm_2_4_la_OBJECTS) $(libgiomm_2_4_la_LIBADD) $(LIBS)
mostlyclean-compile:
-rm -f *.$(OBJEXT)
distclean-compile:
-rm -f *.tab.c
include ./$(DEPDIR)/appinfo.Plo
include ./$(DEPDIR)/asyncresult.Plo
include ./$(DEPDIR)/bufferedinputstream.Plo
include ./$(DEPDIR)/bufferedoutputstream.Plo
include ./$(DEPDIR)/cancellable.Plo
include ./$(DEPDIR)/contenttype.Plo
include ./$(DEPDIR)/datainputstream.Plo
include ./$(DEPDIR)/dataoutputstream.Plo
include ./$(DEPDIR)/desktopappinfo.Plo
include ./$(DEPDIR)/drive.Plo
include ./$(DEPDIR)/enums.Plo
include ./$(DEPDIR)/error.Plo
include ./$(DEPDIR)/file.Plo
include ./$(DEPDIR)/fileattributeinfo.Plo
include ./$(DEPDIR)/fileattributeinfolist.Plo
include ./$(DEPDIR)/fileenumerator.Plo
include ./$(DEPDIR)/fileicon.Plo
include ./$(DEPDIR)/fileinfo.Plo
include ./$(DEPDIR)/fileinputstream.Plo
include ./$(DEPDIR)/filemonitor.Plo
include ./$(DEPDIR)/filenamecompleter.Plo
include ./$(DEPDIR)/fileoutputstream.Plo
include ./$(DEPDIR)/filterinputstream.Plo
include ./$(DEPDIR)/filteroutputstream.Plo
include ./$(DEPDIR)/icon.Plo
include ./$(DEPDIR)/init.Plo
include ./$(DEPDIR)/inputstream.Plo
include ./$(DEPDIR)/loadableicon.Plo
include ./$(DEPDIR)/memoryinputstream.Plo
include ./$(DEPDIR)/mount.Plo
include ./$(DEPDIR)/mountoperation.Plo
include ./$(DEPDIR)/outputstream.Plo
include ./$(DEPDIR)/seekable.Plo
include ./$(DEPDIR)/slot_async.Plo
include ./$(DEPDIR)/themedicon.Plo
include ./$(DEPDIR)/unixinputstream.Plo
include ./$(DEPDIR)/unixoutputstream.Plo
include ./$(DEPDIR)/volume.Plo
include ./$(DEPDIR)/volumemonitor.Plo
include ./$(DEPDIR)/wrap_init.Plo
.cc.o:
$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
# source='$<' object='$@' libtool=no \
# DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) \
# $(CXXCOMPILE) -c -o $@ $<
.cc.obj:
$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
# source='$<' object='$@' libtool=no \
# DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) \
# $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
.cc.lo:
$(LTCXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
# source='$<' object='$@' libtool=yes \
# DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) \
# $(LTCXXCOMPILE) -c -o $@ $<
mostlyclean-libtool:
-rm -f *.lo
clean-libtool:
-rm -rf .libs _libs
install-sublib_includeHEADERS: $(sublib_include_HEADERS)
@$(NORMAL_INSTALL)
test -z "$(sublib_includedir)" || $(MKDIR_P) "$(DESTDIR)$(sublib_includedir)"
@list='$(sublib_include_HEADERS)'; for p in $$list; do \
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
f=$(am__strip_dir) \
echo " $(sublib_includeHEADERS_INSTALL) '$$d$$p' '$(DESTDIR)$(sublib_includedir)/$$f'"; \
$(sublib_includeHEADERS_INSTALL) "$$d$$p" "$(DESTDIR)$(sublib_includedir)/$$f"; \
done
uninstall-sublib_includeHEADERS:
@$(NORMAL_UNINSTALL)
@list='$(sublib_include_HEADERS)'; for p in $$list; do \
f=$(am__strip_dir) \
echo " rm -f '$(DESTDIR)$(sublib_includedir)/$$f'"; \
rm -f "$(DESTDIR)$(sublib_includedir)/$$f"; \
done
# This directory's subdirectories are mostly independent; you can cd
# into them and run `make' without going through this Makefile.
# To change the values of `make' variables: instead of editing Makefiles,
# (1) if the variable is set in `config.status', edit `config.status'
# (which will cause the Makefiles to be regenerated when you run `make');
# (2) otherwise, pass the desired values on the `make' command line.
$(RECURSIVE_TARGETS):
@failcom='exit 1'; \
for f in x $$MAKEFLAGS; do \
case $$f in \
*=* | --[!k]*);; \
*k*) failcom='fail=yes';; \
esac; \
done; \
dot_seen=no; \
target=`echo $@ | sed s/-recursive//`; \
list='$(SUBDIRS)'; for subdir in $$list; do \
echo "Making $$target in $$subdir"; \
if test "$$subdir" = "."; then \
dot_seen=yes; \
local_target="$$target-am"; \
else \
local_target="$$target"; \
fi; \
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
|| eval $$failcom; \
done; \
if test "$$dot_seen" = "no"; then \
$(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
fi; test -z "$$fail"
$(RECURSIVE_CLEAN_TARGETS):
@failcom='exit 1'; \
for f in x $$MAKEFLAGS; do \
case $$f in \
*=* | --[!k]*);; \
*k*) failcom='fail=yes';; \
esac; \
done; \
dot_seen=no; \
case "$@" in \
distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
*) list='$(SUBDIRS)' ;; \
esac; \
rev=''; for subdir in $$list; do \
if test "$$subdir" = "."; then :; else \
rev="$$subdir $$rev"; \
fi; \
done; \
rev="$$rev ."; \
target=`echo $@ | sed s/-recursive//`; \
for subdir in $$rev; do \
echo "Making $$target in $$subdir"; \
if test "$$subdir" = "."; then \
local_target="$$target-am"; \
else \
local_target="$$target"; \
fi; \
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
|| eval $$failcom; \
done && test -z "$$fail"
tags-recursive:
list='$(SUBDIRS)'; for subdir in $$list; do \
test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
done
ctags-recursive:
list='$(SUBDIRS)'; for subdir in $$list; do \
test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
done
ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
unique=`for i in $$list; do \
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
done | \
$(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
END { if (nonempty) { for (i in files) print i; }; }'`; \
mkid -fID $$unique
tags: TAGS
TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
$(TAGS_FILES) $(LISP)
tags=; \
here=`pwd`; \
if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
include_option=--etags-include; \
empty_fix=.; \
else \
include_option=--include; \
empty_fix=; \
fi; \
list='$(SUBDIRS)'; for subdir in $$list; do \
if test "$$subdir" = .; then :; else \
test ! -f $$subdir/TAGS || \
tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
fi; \
done; \
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
unique=`for i in $$list; do \
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
done | \
$(AWK) '{ files[$$0] = 1; nonempty = 1; } \
END { if (nonempty) { for (i in files) print i; }; }'`; \
if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
test -n "$$unique" || unique=$$empty_fix; \
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
$$tags $$unique; \
fi
ctags: CTAGS
CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
$(TAGS_FILES) $(LISP)
tags=; \
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
unique=`for i in $$list; do \
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
done | \
$(AWK) '{ files[$$0] = 1; nonempty = 1; } \
END { if (nonempty) { for (i in files) print i; }; }'`; \
test -z "$(CTAGS_ARGS)$$tags$$unique" \
|| $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
$$tags $$unique
GTAGS:
here=`$(am__cd) $(top_builddir) && pwd` \
&& cd $(top_srcdir) \
&& gtags -i $(GTAGS_ARGS) $$here
distclean-tags:
-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
distdir: $(DISTFILES)
@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
list='$(DISTFILES)'; \
dist_files=`for file in $$list; do echo $$file; done | \
sed -e "s|^$$srcdirstrip/||;t" \
-e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
case $$dist_files in \
*/*) $(MKDIR_P) `echo "$$dist_files" | \
sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
sort -u` ;; \
esac; \
for file in $$dist_files; do \
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
if test -d $$d/$$file; then \
dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
fi; \
cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
else \
test -f $(distdir)/$$file \
|| cp -p $$d/$$file $(distdir)/$$file \
|| exit 1; \
fi; \
done
list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
if test "$$subdir" = .; then :; else \
test -d "$(distdir)/$$subdir" \
|| $(MKDIR_P) "$(distdir)/$$subdir" \
|| exit 1; \
distdir=`$(am__cd) $(distdir) && pwd`; \
top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
(cd $$subdir && \
$(MAKE) $(AM_MAKEFLAGS) \
top_distdir="$$top_distdir" \
distdir="$$distdir/$$subdir" \
am__remove_distdir=: \
am__skip_length_check=: \
distdir) \
|| exit 1; \
fi; \
done
check-am: all-am
check: check-recursive
all-am: Makefile $(LTLIBRARIES) $(HEADERS)
installdirs: installdirs-recursive
installdirs-am:
for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(sublib_includedir)"; do \
test -z "$$dir" || $(MKDIR_P) "$$dir"; \
done
install: install-recursive
install-exec: install-exec-recursive
install-data: install-data-recursive
uninstall: uninstall-recursive
install-am: all-am
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
installcheck: installcheck-recursive
install-strip:
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
`test -z '$(STRIP)' || \
echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
mostlyclean-generic:
clean-generic:
distclean-generic:
-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
maintainer-clean-generic:
@echo "This command is intended for maintainers to use"
@echo "it deletes files that may require special tools to rebuild."
clean: clean-recursive
clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \
mostlyclean-am
distclean: distclean-recursive
-rm -rf ./$(DEPDIR)
-rm -f Makefile
distclean-am: clean-am distclean-compile distclean-generic \
distclean-tags
dvi: dvi-recursive
dvi-am:
html: html-recursive
info: info-recursive
info-am:
install-data-am: install-sublib_includeHEADERS
install-dvi: install-dvi-recursive
install-exec-am: install-libLTLIBRARIES
install-html: install-html-recursive
install-info: install-info-recursive
install-man:
install-pdf: install-pdf-recursive
install-ps: install-ps-recursive
installcheck-am:
maintainer-clean: maintainer-clean-recursive
-rm -rf ./$(DEPDIR)
-rm -f Makefile
maintainer-clean-am: distclean-am maintainer-clean-generic \
maintainer-clean-local
mostlyclean: mostlyclean-recursive
mostlyclean-am: mostlyclean-compile mostlyclean-generic \
mostlyclean-libtool
pdf: pdf-recursive
pdf-am:
ps: ps-recursive
ps-am:
uninstall-am: uninstall-libLTLIBRARIES uninstall-sublib_includeHEADERS
.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) install-am \
install-strip
.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
all all-am check check-am clean clean-generic \
clean-libLTLIBRARIES clean-libtool ctags ctags-recursive \
distclean distclean-compile distclean-generic \
distclean-libtool distclean-tags distdir dvi dvi-am html \
html-am info info-am install install-am install-data \
install-data-am install-dvi install-dvi-am install-exec \
install-exec-am install-html install-html-am install-info \
install-info-am install-libLTLIBRARIES install-man install-pdf \
install-pdf-am install-ps install-ps-am install-strip \
install-sublib_includeHEADERS installcheck installcheck-am \
installdirs installdirs-am maintainer-clean \
maintainer-clean-generic maintainer-clean-local mostlyclean \
mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
pdf pdf-am ps ps-am tags tags-recursive uninstall uninstall-am \
uninstall-libLTLIBRARIES uninstall-sublib_includeHEADERS
maintainer-clean-local:
(cd $(srcdir) && rm -f $(files_all_built_cc) $(files_all_built_h))
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:

View File

@@ -0,0 +1,33 @@
## Copyright (c) 2007
## The gtkmm development team.
SUBDIRS = private
sublib_name = giomm
sublib_libname = giomm-2.4
sublib_libversion = $(LIBGLIBMM_SO_VERSION)
sublib_namespace = Gio
sublib_cflags = $(GIOMM_CFLAGS)
sublib_topdir = gio
sublib_win32_dlls_libs =
sublib_files_extra_posix_cc =
sublib_files_extra_win32_cc =
sublib_files_extra_general_cc = init.cc contenttype.cc slot_async.cc
sublib_files_extra_general_deprecated_cc =
sublib_files_extra_posix_h =
sublib_files_extra_win32_h =
sublib_files_extra_general_h = init.h contenttype.h
sublib_files_extra_general_deprecated_h =
include $(top_srcdir)/build_shared/Makefile_build.am_fragment
lib_LTLIBRARIES = libgiomm-2.4.la
libgiomm_2_4_la_SOURCES = $(files_built_cc) $(files_extra_cc)
libgiomm_2_4_la_LDFLAGS = $(common_ldflags)
libgiomm_2_4_la_LIBADD = $(GIOMM_LIBS) \
$(top_builddir)/glib/glibmm/libglibmm-2.4.la
# this header should be distributed, but not installed
EXTRA_DIST=slot_async.h

View File

@@ -0,0 +1,813 @@
# Makefile.in generated by automake 1.10.1 from Makefile.am.
# @configure_input@
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE.
@SET_MAKE@
# Built files
VPATH = @srcdir@
pkgdatadir = $(datadir)/@PACKAGE@
pkglibdir = $(libdir)/@PACKAGE@
pkgincludedir = $(includedir)/@PACKAGE@
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
install_sh_DATA = $(install_sh) -c -m 644
install_sh_PROGRAM = $(install_sh) -c
install_sh_SCRIPT = $(install_sh) -c
INSTALL_HEADER = $(INSTALL_DATA)
transform = $(program_transform_name)
NORMAL_INSTALL = :
PRE_INSTALL = :
POST_INSTALL = :
NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
build_triplet = @build@
host_triplet = @host@
DIST_COMMON = $(srcdir)/../src/Makefile_list_of_hg.am_fragment \
$(srcdir)/Makefile.am $(srcdir)/Makefile.in \
$(sublib_include_HEADERS) \
$(top_srcdir)/build_shared/Makefile_build.am_fragment \
$(top_srcdir)/build_shared/Makefile_build_gensrc.am_fragment
subdir = gio/giomm
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
am__aclocal_m4_deps = $(top_srcdir)/scripts/c_std.m4 \
$(top_srcdir)/scripts/cxx.m4 $(top_srcdir)/scripts/cxx_std.m4 \
$(top_srcdir)/scripts/dk-feature.m4 \
$(top_srcdir)/scripts/docgen.m4 \
$(top_srcdir)/scripts/glibmm_check_perl.m4 \
$(top_srcdir)/scripts/macros.m4 \
$(top_srcdir)/scripts/reduced.m4 $(top_srcdir)/scripts/sun.m4 \
$(top_srcdir)/configure.in
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
$(ACLOCAL_M4)
mkinstalldirs = $(install_sh) -d
CONFIG_HEADER = $(top_builddir)/config.h \
$(top_builddir)/glib/glibmmconfig.h \
$(top_builddir)/gio/giommconfig.h
CONFIG_CLEAN_FILES =
am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
am__vpath_adj = case $$p in \
$(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
*) f=$$p;; \
esac;
am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
am__installdirs = "$(DESTDIR)$(libdir)" \
"$(DESTDIR)$(sublib_includedir)"
libLTLIBRARIES_INSTALL = $(INSTALL)
LTLIBRARIES = $(lib_LTLIBRARIES)
am__DEPENDENCIES_1 =
libgiomm_2_4_la_DEPENDENCIES = $(am__DEPENDENCIES_1) \
$(top_builddir)/glib/glibmm/libglibmm-2.4.la
am__libgiomm_2_4_la_SOURCES_DIST = appinfo.cc asyncresult.cc \
cancellable.cc drive.cc error.cc file.cc fileattributeinfo.cc \
fileattributeinfolist.cc fileenumerator.cc fileicon.cc \
fileinfo.cc fileinputstream.cc fileoutputstream.cc \
filemonitor.cc filterinputstream.cc filteroutputstream.cc \
filenamecompleter.cc icon.cc inputstream.cc loadableicon.cc \
mount.cc mountoperation.cc outputstream.cc seekable.cc \
volume.cc volumemonitor.cc bufferedinputstream.cc \
bufferedoutputstream.cc datainputstream.cc dataoutputstream.cc \
enums.cc memoryinputstream.cc themedicon.cc unixinputstream.cc \
unixoutputstream.cc desktopappinfo.cc wrap_init.cc init.cc \
contenttype.cc slot_async.cc
am__objects_1 = appinfo.lo asyncresult.lo cancellable.lo drive.lo \
error.lo file.lo fileattributeinfo.lo fileattributeinfolist.lo \
fileenumerator.lo fileicon.lo fileinfo.lo fileinputstream.lo \
fileoutputstream.lo filemonitor.lo filterinputstream.lo \
filteroutputstream.lo filenamecompleter.lo icon.lo \
inputstream.lo loadableicon.lo mount.lo mountoperation.lo \
outputstream.lo seekable.lo volume.lo volumemonitor.lo \
bufferedinputstream.lo bufferedoutputstream.lo \
datainputstream.lo dataoutputstream.lo enums.lo \
memoryinputstream.lo themedicon.lo
am__objects_2 = unixinputstream.lo unixoutputstream.lo \
desktopappinfo.lo
am__objects_3 =
@OS_WIN32_FALSE@am__objects_4 = $(am__objects_1) $(am__objects_2)
@OS_WIN32_TRUE@am__objects_4 = $(am__objects_1) $(am__objects_3)
am__objects_5 = $(am__objects_4) wrap_init.lo
am__objects_6 = init.lo contenttype.lo slot_async.lo
@OS_WIN32_FALSE@am__objects_7 = $(am__objects_3) $(am__objects_6)
@OS_WIN32_TRUE@am__objects_7 = $(am__objects_3) $(am__objects_6)
am_libgiomm_2_4_la_OBJECTS = $(am__objects_5) $(am__objects_7)
libgiomm_2_4_la_OBJECTS = $(am_libgiomm_2_4_la_OBJECTS)
libgiomm_2_4_la_LINK = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) \
$(LIBTOOLFLAGS) --mode=link $(CXXLD) $(AM_CXXFLAGS) \
$(CXXFLAGS) $(libgiomm_2_4_la_LDFLAGS) $(LDFLAGS) -o $@
depcomp = $(SHELL) $(top_srcdir)/scripts/depcomp
am__depfiles_maybe = depfiles
CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
$(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
LTCXXCOMPILE = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
--mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
$(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
CXXLD = $(CXX)
CXXLINK = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
--mode=link $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) \
$(LDFLAGS) -o $@
SOURCES = $(libgiomm_2_4_la_SOURCES)
DIST_SOURCES = $(am__libgiomm_2_4_la_SOURCES_DIST)
RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
html-recursive info-recursive install-data-recursive \
install-dvi-recursive install-exec-recursive \
install-html-recursive install-info-recursive \
install-pdf-recursive install-ps-recursive install-recursive \
installcheck-recursive installdirs-recursive pdf-recursive \
ps-recursive uninstall-recursive
sublib_includeHEADERS_INSTALL = $(INSTALL_HEADER)
HEADERS = $(sublib_include_HEADERS)
RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
distclean-recursive maintainer-clean-recursive
ETAGS = etags
CTAGS = ctags
DIST_SUBDIRS = $(SUBDIRS)
ACLOCAL = @ACLOCAL@
AMTAR = @AMTAR@
AR = @AR@
AS = @AS@
AUTOCONF = @AUTOCONF@
AUTOHEADER = @AUTOHEADER@
AUTOMAKE = @AUTOMAKE@
AWK = @AWK@
CC = @CC@
CCDEPMODE = @CCDEPMODE@
CFLAGS = @CFLAGS@
CPP = @CPP@
CPPFLAGS = @CPPFLAGS@
CXX = @CXX@
CXXCPP = @CXXCPP@
CXXDEPMODE = @CXXDEPMODE@
CXXFLAGS = @CXXFLAGS@
CYGPATH_W = @CYGPATH_W@
DEFS = @DEFS@ -DG_LOG_DOMAIN=\"$(sublib_name)\" $(extra_win32_defines)
DEPDIR = @DEPDIR@
DISABLE_DEPRECATED_API_CFLAGS = @DISABLE_DEPRECATED_API_CFLAGS@
DISABLE_DEPRECATED_CFLAGS = @DISABLE_DEPRECATED_CFLAGS@
DLLTOOL = @DLLTOOL@
DSYMUTIL = @DSYMUTIL@
ECHO = @ECHO@
ECHO_C = @ECHO_C@
ECHO_N = @ECHO_N@
ECHO_T = @ECHO_T@
EGREP = @EGREP@
EXEEXT = @EXEEXT@
F77 = @F77@
FFLAGS = @FFLAGS@
GIOMM_CFLAGS = @GIOMM_CFLAGS@
GIOMM_LIBS = @GIOMM_LIBS@
GLIBMM_CFLAGS = @GLIBMM_CFLAGS@
GLIBMM_LIBS = @GLIBMM_LIBS@
GLIBMM_MAJOR_VERSION = @GLIBMM_MAJOR_VERSION@
GLIBMM_MICRO_VERSION = @GLIBMM_MICRO_VERSION@
GLIBMM_MINOR_VERSION = @GLIBMM_MINOR_VERSION@
GLIBMM_RELEASE = @GLIBMM_RELEASE@
GLIBMM_VERSION = @GLIBMM_VERSION@
GMMPROC_DIR = @GMMPROC_DIR@
GREP = @GREP@
GTHREAD_CFLAGS = @GTHREAD_CFLAGS@
GTHREAD_LIBS = @GTHREAD_LIBS@
GTKMMPROC_MERGECDOCS = @GTKMMPROC_MERGECDOCS@
GTKMM_DOXYGEN_INPUT = @GTKMM_DOXYGEN_INPUT@
INSTALL = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
LDFLAGS = @LDFLAGS@
LIBGLIBMM_SO_VERSION = @LIBGLIBMM_SO_VERSION@
LIBOBJS = @LIBOBJS@
LIBS = @LIBS@
LIBTOOL = @LIBTOOL@
LN_S = @LN_S@
LTLIBOBJS = @LTLIBOBJS@
M4 = @M4@
MAINT = @MAINT@
MAKEINFO = @MAKEINFO@
MKDIR_P = @MKDIR_P@
NMEDIT = @NMEDIT@
OBJDUMP = @OBJDUMP@
OBJEXT = @OBJEXT@
PACKAGE = @PACKAGE@
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
PACKAGE_NAME = @PACKAGE_NAME@
PACKAGE_STRING = @PACKAGE_STRING@
PACKAGE_TARNAME = @PACKAGE_TARNAME@
PACKAGE_VERSION = @PACKAGE_VERSION@
PATH_SEPARATOR = @PATH_SEPARATOR@
PERL_PATH = @PERL_PATH@
PKG_CONFIG = @PKG_CONFIG@
RANLIB = @RANLIB@
SED = @SED@
SET_MAKE = @SET_MAKE@
SHELL = @SHELL@
STRIP = @STRIP@
VERSION = @VERSION@
abs_builddir = @abs_builddir@
abs_srcdir = @abs_srcdir@
abs_top_builddir = @abs_top_builddir@
abs_top_srcdir = @abs_top_srcdir@
ac_ct_CC = @ac_ct_CC@
ac_ct_CXX = @ac_ct_CXX@
ac_ct_F77 = @ac_ct_F77@
am__include = @am__include@
am__leading_dot = @am__leading_dot@
am__quote = @am__quote@
am__tar = @am__tar@
am__untar = @am__untar@
bindir = @bindir@
build = @build@
build_alias = @build_alias@
build_cpu = @build_cpu@
build_os = @build_os@
build_vendor = @build_vendor@
builddir = @builddir@
datadir = @datadir@
datarootdir = @datarootdir@
docdir = @docdir@
dvidir = @dvidir@
exec_prefix = @exec_prefix@
host = @host@
host_alias = @host_alias@
host_cpu = @host_cpu@
host_os = @host_os@
host_vendor = @host_vendor@
htmldir = @htmldir@
includedir = @includedir@
infodir = @infodir@
install_sh = @install_sh@
libdir = @libdir@
libexecdir = @libexecdir@
localedir = @localedir@
localstatedir = @localstatedir@
mandir = @mandir@
mkdir_p = @mkdir_p@
oldincludedir = @oldincludedir@
pdfdir = @pdfdir@
prefix = @prefix@
program_transform_name = @program_transform_name@
psdir = @psdir@
sbindir = @sbindir@
sharedstatedir = @sharedstatedir@
srcdir = @srcdir@
sysconfdir = @sysconfdir@
target_alias = @target_alias@
top_build_prefix = @top_build_prefix@
top_builddir = @top_builddir@
top_srcdir = @top_srcdir@
SUBDIRS = private
sublib_name = giomm
sublib_libname = giomm-2.4
sublib_libversion = $(LIBGLIBMM_SO_VERSION)
sublib_namespace = Gio
sublib_cflags = $(GIOMM_CFLAGS)
sublib_topdir = gio
sublib_win32_dlls_libs =
sublib_files_extra_posix_cc =
sublib_files_extra_win32_cc =
sublib_files_extra_general_cc = init.cc contenttype.cc slot_async.cc
sublib_files_extra_general_deprecated_cc =
sublib_files_extra_posix_h =
sublib_files_extra_win32_h =
sublib_files_extra_general_h = init.h contenttype.h
sublib_files_extra_general_deprecated_h =
files_posix_hg = unixinputstream.hg unixoutputstream.hg desktopappinfo.hg
files_win32_hg =
files_general_hg = appinfo.hg asyncresult.hg cancellable.hg drive.hg error.hg file.hg fileattributeinfo.hg \
fileattributeinfolist.hg fileenumerator.hg fileicon.hg fileinfo.hg fileinputstream.hg fileoutputstream.hg \
filemonitor.hg filterinputstream.hg filteroutputstream.hg filenamecompleter.hg \
icon.hg inputstream.hg loadableicon.hg mount.hg mountoperation.hg outputstream.hg \
seekable.hg volume.hg volumemonitor.hg bufferedinputstream.hg \
bufferedoutputstream.hg datainputstream.hg dataoutputstream.hg enums.hg \
memoryinputstream.hg themedicon.hg
files_all_hg = \
$(files_posix_hg) \
$(files_win32_hg) \
$(files_general_hg) \
$(files_general_deprecated_hg)
@OS_WIN32_FALSE@files_hg = $(files_general_hg) $(files_posix_hg) $(files_general_deprecated_hg)
@OS_WIN32_TRUE@files_hg = $(files_general_hg) $(files_win32_hg) $(files_general_deprecated_hg)
files_built_cc = $(files_hg:.hg=.cc) wrap_init.cc
files_built_h = $(files_hg:.hg=.h)
files_all_built_cc = $(files_all_hg:.hg=.cc) wrap_init.cc
files_all_built_h = $(files_all_hg:.hg=.h)
# Extra files
files_all_extra_cc = \
$(sublib_files_extra_posix_cc) \
$(sublib_files_extra_win32_cc) \
$(sublib_files_extra_general_cc) \
$(sublib_files_extra_general_deprecated_cc)
files_all_extra_h = $(sublib_files_extra_posix_h) \
$(sublib_files_extra_win32_h) $(sublib_files_extra_general_h) \
$(sublib_files_extra_general_deprecated_h) wrap_init.h
@OS_WIN32_FALSE@files_extra_cc = \
@OS_WIN32_FALSE@ $(sublib_files_extra_posix_cc) \
@OS_WIN32_FALSE@ $(sublib_files_extra_general_cc)
@OS_WIN32_TRUE@files_extra_cc = \
@OS_WIN32_TRUE@ $(sublib_files_extra_win32_cc) \
@OS_WIN32_TRUE@ $(sublib_files_extra_general_cc)
@OS_WIN32_FALSE@files_extra_h = $(sublib_files_extra_posix_h) \
@OS_WIN32_FALSE@ $(sublib_files_extra_general_h) wrap_init.h
@OS_WIN32_TRUE@files_extra_h = $(sublib_files_extra_win32_h) \
@OS_WIN32_TRUE@ $(sublib_files_extra_general_h) wrap_init.h
@PLATFORM_WIN32_FALSE@extra_win32_defines =
# Support for DLL on mingw using libtool > 1.4
# When creating DLLs on win32, we need to explicitly add a few extra
# libraries at link time to resolve symbols (remember a dll is like an
# executable).
@PLATFORM_WIN32_TRUE@extra_win32_defines = \
@PLATFORM_WIN32_TRUE@ -D$(shell echo $(sublib_name) | tr [:lower:] [:upper:])_BUILD
@PLATFORM_WIN32_FALSE@no_undefined =
@PLATFORM_WIN32_TRUE@no_undefined = -no-undefined -Wl,--export-all-symbols
@PLATFORM_WIN32_FALSE@win32_dlls_extra_libs =
@PLATFORM_WIN32_TRUE@win32_dlls_extra_libs = $(sublib_win32_dlls_libs)
common_ldflags = -version-info $(sublib_libversion) $(no_undefined)
# All modules can include all other modules,
# for instance, so that gdkmm can use headers in pangomm.
all_includes = -I$(top_builddir)/$(sublib_topdir) -I$(top_srcdir)/$(sublib_topdir) \
-I$(top_builddir)/glib -I$(top_srcdir)/glib -I$(top_builddir) \
-I$(top_builddir)/gio -I$(top_srcdir)/gio \
$(sublib_cflags) $(GTHREAD_CFLAGS)
dist_sources = $(files_all_built_cc) $(files_all_extra_cc) $(files_all_built_h) $(files_all_extra_h)
DISTFILES = $(DIST_COMMON) $(dist_sources) $(TEXINFOS) $(EXTRA_DIST)
DEFAULT_INCLUDES =
# DISABLE_DEPRECATED_CFLAGS and DISABLE_DEPRECATED_API_CFLAGS are empty unless the appropriate --enable-*=no options are specified to configure:
INCLUDES = $(strip $(all_includes)) $(DISABLE_DEPRECATED_CFLAGS) $(DISABLE_DEPRECATED_API_CFLAGS)
sublib_includedir = $(includedir)/$(sublib_libname)/$(sublib_name)
sublib_include_HEADERS = $(files_all_built_h) $(files_all_extra_h)
lib_LTLIBRARIES = libgiomm-2.4.la
libgiomm_2_4_la_SOURCES = $(files_built_cc) $(files_extra_cc)
libgiomm_2_4_la_LDFLAGS = $(common_ldflags)
libgiomm_2_4_la_LIBADD = $(GIOMM_LIBS) \
$(top_builddir)/glib/glibmm/libglibmm-2.4.la
# this header should be distributed, but not installed
EXTRA_DIST = slot_async.h
all: all-recursive
.SUFFIXES:
.SUFFIXES: .cc .lo .o .obj
$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(top_srcdir)/build_shared/Makefile_build.am_fragment $(srcdir)/../src/Makefile_list_of_hg.am_fragment $(top_srcdir)/build_shared/Makefile_build_gensrc.am_fragment $(am__configure_deps)
@for dep in $?; do \
case '$(am__configure_deps)' in \
*$$dep*) \
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
&& exit 0; \
exit 1;; \
esac; \
done; \
echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu gio/giomm/Makefile'; \
cd $(top_srcdir) && \
$(AUTOMAKE) --gnu gio/giomm/Makefile
.PRECIOUS: Makefile
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
@case '$?' in \
*config.status*) \
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
*) \
echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
esac;
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
install-libLTLIBRARIES: $(lib_LTLIBRARIES)
@$(NORMAL_INSTALL)
test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(libdir)"
@list='$(lib_LTLIBRARIES)'; for p in $$list; do \
if test -f $$p; then \
f=$(am__strip_dir) \
echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(libdir)/$$f'"; \
$(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(libdir)/$$f"; \
else :; fi; \
done
uninstall-libLTLIBRARIES:
@$(NORMAL_UNINSTALL)
@list='$(lib_LTLIBRARIES)'; for p in $$list; do \
p=$(am__strip_dir) \
echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$p'"; \
$(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$p"; \
done
clean-libLTLIBRARIES:
-test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES)
@list='$(lib_LTLIBRARIES)'; for p in $$list; do \
dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
test "$$dir" != "$$p" || dir=.; \
echo "rm -f \"$${dir}/so_locations\""; \
rm -f "$${dir}/so_locations"; \
done
libgiomm-2.4.la: $(libgiomm_2_4_la_OBJECTS) $(libgiomm_2_4_la_DEPENDENCIES)
$(libgiomm_2_4_la_LINK) -rpath $(libdir) $(libgiomm_2_4_la_OBJECTS) $(libgiomm_2_4_la_LIBADD) $(LIBS)
mostlyclean-compile:
-rm -f *.$(OBJEXT)
distclean-compile:
-rm -f *.tab.c
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/appinfo.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/asyncresult.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/bufferedinputstream.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/bufferedoutputstream.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cancellable.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/contenttype.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/datainputstream.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dataoutputstream.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/desktopappinfo.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/drive.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/enums.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/error.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/file.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fileattributeinfo.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fileattributeinfolist.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fileenumerator.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fileicon.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fileinfo.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fileinputstream.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/filemonitor.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/filenamecompleter.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fileoutputstream.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/filterinputstream.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/filteroutputstream.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/icon.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/init.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/inputstream.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/loadableicon.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/memoryinputstream.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mount.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mountoperation.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/outputstream.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/seekable.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/slot_async.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/themedicon.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/unixinputstream.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/unixoutputstream.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/volume.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/volumemonitor.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/wrap_init.Plo@am__quote@
.cc.o:
@am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
@am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
@am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ $<
.cc.obj:
@am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
@am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
@am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
.cc.lo:
@am__fastdepCXX_TRUE@ $(LTCXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
@am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
@am__fastdepCXX_FALSE@ $(LTCXXCOMPILE) -c -o $@ $<
mostlyclean-libtool:
-rm -f *.lo
clean-libtool:
-rm -rf .libs _libs
install-sublib_includeHEADERS: $(sublib_include_HEADERS)
@$(NORMAL_INSTALL)
test -z "$(sublib_includedir)" || $(MKDIR_P) "$(DESTDIR)$(sublib_includedir)"
@list='$(sublib_include_HEADERS)'; for p in $$list; do \
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
f=$(am__strip_dir) \
echo " $(sublib_includeHEADERS_INSTALL) '$$d$$p' '$(DESTDIR)$(sublib_includedir)/$$f'"; \
$(sublib_includeHEADERS_INSTALL) "$$d$$p" "$(DESTDIR)$(sublib_includedir)/$$f"; \
done
uninstall-sublib_includeHEADERS:
@$(NORMAL_UNINSTALL)
@list='$(sublib_include_HEADERS)'; for p in $$list; do \
f=$(am__strip_dir) \
echo " rm -f '$(DESTDIR)$(sublib_includedir)/$$f'"; \
rm -f "$(DESTDIR)$(sublib_includedir)/$$f"; \
done
# This directory's subdirectories are mostly independent; you can cd
# into them and run `make' without going through this Makefile.
# To change the values of `make' variables: instead of editing Makefiles,
# (1) if the variable is set in `config.status', edit `config.status'
# (which will cause the Makefiles to be regenerated when you run `make');
# (2) otherwise, pass the desired values on the `make' command line.
$(RECURSIVE_TARGETS):
@failcom='exit 1'; \
for f in x $$MAKEFLAGS; do \
case $$f in \
*=* | --[!k]*);; \
*k*) failcom='fail=yes';; \
esac; \
done; \
dot_seen=no; \
target=`echo $@ | sed s/-recursive//`; \
list='$(SUBDIRS)'; for subdir in $$list; do \
echo "Making $$target in $$subdir"; \
if test "$$subdir" = "."; then \
dot_seen=yes; \
local_target="$$target-am"; \
else \
local_target="$$target"; \
fi; \
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
|| eval $$failcom; \
done; \
if test "$$dot_seen" = "no"; then \
$(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
fi; test -z "$$fail"
$(RECURSIVE_CLEAN_TARGETS):
@failcom='exit 1'; \
for f in x $$MAKEFLAGS; do \
case $$f in \
*=* | --[!k]*);; \
*k*) failcom='fail=yes';; \
esac; \
done; \
dot_seen=no; \
case "$@" in \
distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
*) list='$(SUBDIRS)' ;; \
esac; \
rev=''; for subdir in $$list; do \
if test "$$subdir" = "."; then :; else \
rev="$$subdir $$rev"; \
fi; \
done; \
rev="$$rev ."; \
target=`echo $@ | sed s/-recursive//`; \
for subdir in $$rev; do \
echo "Making $$target in $$subdir"; \
if test "$$subdir" = "."; then \
local_target="$$target-am"; \
else \
local_target="$$target"; \
fi; \
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
|| eval $$failcom; \
done && test -z "$$fail"
tags-recursive:
list='$(SUBDIRS)'; for subdir in $$list; do \
test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
done
ctags-recursive:
list='$(SUBDIRS)'; for subdir in $$list; do \
test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
done
ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
unique=`for i in $$list; do \
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
done | \
$(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
END { if (nonempty) { for (i in files) print i; }; }'`; \
mkid -fID $$unique
tags: TAGS
TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
$(TAGS_FILES) $(LISP)
tags=; \
here=`pwd`; \
if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
include_option=--etags-include; \
empty_fix=.; \
else \
include_option=--include; \
empty_fix=; \
fi; \
list='$(SUBDIRS)'; for subdir in $$list; do \
if test "$$subdir" = .; then :; else \
test ! -f $$subdir/TAGS || \
tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
fi; \
done; \
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
unique=`for i in $$list; do \
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
done | \
$(AWK) '{ files[$$0] = 1; nonempty = 1; } \
END { if (nonempty) { for (i in files) print i; }; }'`; \
if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
test -n "$$unique" || unique=$$empty_fix; \
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
$$tags $$unique; \
fi
ctags: CTAGS
CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
$(TAGS_FILES) $(LISP)
tags=; \
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
unique=`for i in $$list; do \
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
done | \
$(AWK) '{ files[$$0] = 1; nonempty = 1; } \
END { if (nonempty) { for (i in files) print i; }; }'`; \
test -z "$(CTAGS_ARGS)$$tags$$unique" \
|| $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
$$tags $$unique
GTAGS:
here=`$(am__cd) $(top_builddir) && pwd` \
&& cd $(top_srcdir) \
&& gtags -i $(GTAGS_ARGS) $$here
distclean-tags:
-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
distdir: $(DISTFILES)
@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
list='$(DISTFILES)'; \
dist_files=`for file in $$list; do echo $$file; done | \
sed -e "s|^$$srcdirstrip/||;t" \
-e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
case $$dist_files in \
*/*) $(MKDIR_P) `echo "$$dist_files" | \
sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
sort -u` ;; \
esac; \
for file in $$dist_files; do \
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
if test -d $$d/$$file; then \
dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
fi; \
cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
else \
test -f $(distdir)/$$file \
|| cp -p $$d/$$file $(distdir)/$$file \
|| exit 1; \
fi; \
done
list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
if test "$$subdir" = .; then :; else \
test -d "$(distdir)/$$subdir" \
|| $(MKDIR_P) "$(distdir)/$$subdir" \
|| exit 1; \
distdir=`$(am__cd) $(distdir) && pwd`; \
top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
(cd $$subdir && \
$(MAKE) $(AM_MAKEFLAGS) \
top_distdir="$$top_distdir" \
distdir="$$distdir/$$subdir" \
am__remove_distdir=: \
am__skip_length_check=: \
distdir) \
|| exit 1; \
fi; \
done
check-am: all-am
check: check-recursive
all-am: Makefile $(LTLIBRARIES) $(HEADERS)
installdirs: installdirs-recursive
installdirs-am:
for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(sublib_includedir)"; do \
test -z "$$dir" || $(MKDIR_P) "$$dir"; \
done
install: install-recursive
install-exec: install-exec-recursive
install-data: install-data-recursive
uninstall: uninstall-recursive
install-am: all-am
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
installcheck: installcheck-recursive
install-strip:
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
`test -z '$(STRIP)' || \
echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
mostlyclean-generic:
clean-generic:
distclean-generic:
-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
maintainer-clean-generic:
@echo "This command is intended for maintainers to use"
@echo "it deletes files that may require special tools to rebuild."
clean: clean-recursive
clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \
mostlyclean-am
distclean: distclean-recursive
-rm -rf ./$(DEPDIR)
-rm -f Makefile
distclean-am: clean-am distclean-compile distclean-generic \
distclean-tags
dvi: dvi-recursive
dvi-am:
html: html-recursive
info: info-recursive
info-am:
install-data-am: install-sublib_includeHEADERS
install-dvi: install-dvi-recursive
install-exec-am: install-libLTLIBRARIES
install-html: install-html-recursive
install-info: install-info-recursive
install-man:
install-pdf: install-pdf-recursive
install-ps: install-ps-recursive
installcheck-am:
maintainer-clean: maintainer-clean-recursive
-rm -rf ./$(DEPDIR)
-rm -f Makefile
maintainer-clean-am: distclean-am maintainer-clean-generic \
maintainer-clean-local
mostlyclean: mostlyclean-recursive
mostlyclean-am: mostlyclean-compile mostlyclean-generic \
mostlyclean-libtool
pdf: pdf-recursive
pdf-am:
ps: ps-recursive
ps-am:
uninstall-am: uninstall-libLTLIBRARIES uninstall-sublib_includeHEADERS
.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) install-am \
install-strip
.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
all all-am check check-am clean clean-generic \
clean-libLTLIBRARIES clean-libtool ctags ctags-recursive \
distclean distclean-compile distclean-generic \
distclean-libtool distclean-tags distdir dvi dvi-am html \
html-am info info-am install install-am install-data \
install-data-am install-dvi install-dvi-am install-exec \
install-exec-am install-html install-html-am install-info \
install-info-am install-libLTLIBRARIES install-man install-pdf \
install-pdf-am install-ps install-ps-am install-strip \
install-sublib_includeHEADERS installcheck installcheck-am \
installdirs installdirs-am maintainer-clean \
maintainer-clean-generic maintainer-clean-local mostlyclean \
mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
pdf pdf-am ps ps-am tags tags-recursive uninstall uninstall-am \
uninstall-libLTLIBRARIES uninstall-sublib_includeHEADERS
maintainer-clean-local:
(cd $(srcdir) && rm -f $(files_all_built_cc) $(files_all_built_h))
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:

View File

@@ -0,0 +1,528 @@
// Generated by gtkmmproc -- DO NOT MODIFY!
#include <giomm/appinfo.h>
#include <giomm/private/appinfo_p.h>
// -*- Mode: C++; indent-tabs-mode: nil; c-basic-offset: 2 -*-
/* Copyright (C) 2007 The gtkmm Development Team
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#include <gio/gio.h>
#include <giomm/file.h>
namespace Gio
{
#ifdef GLIBMM_EXCEPTIONS_ENABLED
Glib::RefPtr<AppInfo>
AppInfo::create_from_commandline(const std::string& commandline,
const std::string& application_name,
AppInfoCreateFlags flags)
#else
Glib::RefPtr<AppInfo>
AppInfo::create_from_commandline(const std::string& commandline,
const std::string& application_name,
AppInfoCreateFlags flags,
std::auto_ptr<Glib::Error>& error)
#endif // GLIBMM_EXCEPTIONS_ENABLED
{
GAppInfo* capp_info = 0;
GError* gerror = 0;
capp_info = g_app_info_create_from_commandline(commandline.c_str(),
application_name.c_str(),
static_cast<GAppInfoCreateFlags>(flags),
&gerror);
if (gerror)
#ifdef GLIBMM_EXCEPTIONS_ENABLED
::Glib::Error::throw_exception(gerror);
#else
error = ::Glib::Error::throw_exception(gerror);
#endif //GLIBMM_EXCEPTIONS_ENABLED
return Glib::wrap(capp_info);
}
Glib::ListHandle< Glib::RefPtr<AppInfo> > AppInfo::get_all()
{
return Glib::ListHandle< Glib::RefPtr<AppInfo> >(g_app_info_get_all(), Glib::OWNERSHIP_SHALLOW);
}
Glib::ListHandle< Glib::RefPtr<AppInfo> > AppInfo::get_all_for_type(const std::string& content_type)
{
return Glib::ListHandle< Glib::RefPtr<AppInfo> >(
g_app_info_get_all_for_type(content_type.c_str()), Glib::OWNERSHIP_SHALLOW);
}
Glib::RefPtr<AppInfo> AppInfo::get_default_for_type(const std::string& content_type,
bool must_support_uris)
{
GAppInfo* cinfo = 0;
cinfo = g_app_info_get_default_for_type(content_type.c_str(),
static_cast<gboolean>(must_support_uris));
return Glib::wrap(cinfo);
}
Glib::RefPtr<AppInfo> AppInfo::get_default_for_uri_scheme(const std::string& uri_scheme)
{
GAppInfo* cinfo = 0;
cinfo = g_app_info_get_default_for_uri_scheme(uri_scheme.c_str());
return Glib::wrap(cinfo);
}
} // namespace Gio
namespace
{
} // anonymous namespace
namespace Glib
{
Glib::RefPtr<Gio::AppLaunchContext> wrap(GAppLaunchContext* object, bool take_copy)
{
return Glib::RefPtr<Gio::AppLaunchContext>( dynamic_cast<Gio::AppLaunchContext*> (Glib::wrap_auto ((GObject*)(object), take_copy)) );
//We use dynamic_cast<> in case of multiple inheritance.
}
} /* namespace Glib */
namespace Gio
{
/* The *_Class implementation: */
const Glib::Class& AppLaunchContext_Class::init()
{
if(!gtype_) // create the GType if necessary
{
// Glib::Class has to know the class init function to clone custom types.
class_init_func_ = &AppLaunchContext_Class::class_init_function;
// This is actually just optimized away, apparently with no harm.
// Make sure that the parent type has been created.
//CppClassParent::CppObjectType::get_type();
// Create the wrapper type, with the same class/instance size as the base type.
register_derived_type(g_app_launch_context_get_type());
// Add derived versions of interfaces, if the C type implements any interfaces:
}
return *this;
}
void AppLaunchContext_Class::class_init_function(void* g_class, void* class_data)
{
BaseClassType *const klass = static_cast<BaseClassType*>(g_class);
CppClassParent::class_init_function(klass, class_data);
#ifdef GLIBMM_VFUNCS_ENABLED
#endif //GLIBMM_VFUNCS_ENABLED
#ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
#endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
}
#ifdef GLIBMM_VFUNCS_ENABLED
#endif //GLIBMM_VFUNCS_ENABLED
#ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
#endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
Glib::ObjectBase* AppLaunchContext_Class::wrap_new(GObject* object)
{
return new AppLaunchContext((GAppLaunchContext*)object);
}
/* The implementation: */
GAppLaunchContext* AppLaunchContext::gobj_copy()
{
reference();
return gobj();
}
AppLaunchContext::AppLaunchContext(const Glib::ConstructParams& construct_params)
:
Glib::Object(construct_params)
{
}
AppLaunchContext::AppLaunchContext(GAppLaunchContext* castitem)
:
Glib::Object((GObject*)(castitem))
{}
AppLaunchContext::~AppLaunchContext()
{}
AppLaunchContext::CppClassType AppLaunchContext::applaunchcontext_class_; // initialize static member
GType AppLaunchContext::get_type()
{
return applaunchcontext_class_.init().get_type();
}
GType AppLaunchContext::get_base_type()
{
return g_app_launch_context_get_type();
}
AppLaunchContext::AppLaunchContext()
:
// Mark this class as non-derived to allow C++ vfuncs to be skipped.
Glib::ObjectBase(0),
Glib::Object(Glib::ConstructParams(applaunchcontext_class_.init()))
{
}
Glib::RefPtr<AppLaunchContext> AppLaunchContext::create()
{
return Glib::RefPtr<AppLaunchContext>( new AppLaunchContext() );
}
std::string AppLaunchContext::get_display(const Glib::RefPtr<AppInfo>& info, const Glib::ListHandle< Glib::RefPtr<Gio::File> >& files)
{
return Glib::convert_return_gchar_ptr_to_stdstring(g_app_launch_context_get_display(gobj(), Glib::unwrap(info), files.data()));
}
std::string AppLaunchContext::get_startup_notify_id(const Glib::RefPtr<AppInfo>& info, const Glib::ListHandle< Glib::RefPtr<Gio::File> >& files)
{
return Glib::convert_return_gchar_ptr_to_stdstring(g_app_launch_context_get_startup_notify_id(gobj(), Glib::unwrap(info), files.data()));
}
void AppLaunchContext::launch_failed(const std::string& startup_notify_id)
{
g_app_launch_context_launch_failed(gobj(), startup_notify_id.c_str());
}
#ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
#endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
#ifdef GLIBMM_VFUNCS_ENABLED
#endif //GLIBMM_VFUNCS_ENABLED
} // namespace Gio
namespace Glib
{
Glib::RefPtr<Gio::AppInfo> wrap(GAppInfo* object, bool take_copy)
{
return Glib::RefPtr<Gio::AppInfo>( dynamic_cast<Gio::AppInfo*> (Glib::wrap_auto_interface<Gio::AppInfo> ((GObject*)(object), take_copy)) );
//We use dynamic_cast<> in case of multiple inheritance.
}
} // namespace Glib
namespace Gio
{
/* The *_Class implementation: */
const Glib::Interface_Class& AppInfo_Class::init()
{
if(!gtype_) // create the GType if necessary
{
// Glib::Interface_Class has to know the interface init function
// in order to add interfaces to implementing types.
class_init_func_ = &AppInfo_Class::iface_init_function;
// We can not derive from another interface, and it is not necessary anyway.
gtype_ = g_app_info_get_type();
}
return *this;
}
void AppInfo_Class::iface_init_function(void* g_iface, void*)
{
BaseClassType *const klass = static_cast<BaseClassType*>(g_iface);
//This is just to avoid an "unused variable" warning when there are no vfuncs or signal handlers to connect.
//This is a temporary fix until I find out why I can not seem to derive a GtkFileChooser interface. murrayc
g_assert(klass != 0);
#ifdef GLIBMM_VFUNCS_ENABLED
#endif //GLIBMM_VFUNCS_ENABLED
#ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
#endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
}
#ifdef GLIBMM_VFUNCS_ENABLED
#endif //GLIBMM_VFUNCS_ENABLED
#ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
#endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
Glib::ObjectBase* AppInfo_Class::wrap_new(GObject* object)
{
return new AppInfo((GAppInfo*)(object));
}
/* The implementation: */
AppInfo::AppInfo()
:
Glib::Interface(appinfo_class_.init())
{}
AppInfo::AppInfo(GAppInfo* castitem)
:
Glib::Interface((GObject*)(castitem))
{}
AppInfo::AppInfo(const Glib::Interface_Class& interface_class)
: Glib::Interface(interface_class)
{
}
AppInfo::~AppInfo()
{}
// static
void AppInfo::add_interface(GType gtype_implementer)
{
appinfo_class_.init().add_interface(gtype_implementer);
}
AppInfo::CppClassType AppInfo::appinfo_class_; // initialize static member
GType AppInfo::get_type()
{
return appinfo_class_.init().get_type();
}
GType AppInfo::get_base_type()
{
return g_app_info_get_type();
}
bool AppInfo::equal(const Glib::RefPtr<AppInfo>& other) const
{
return g_app_info_equal(const_cast<GAppInfo*>(gobj()), Glib::unwrap(other));
}
std::string AppInfo::get_id() const
{
return Glib::convert_const_gchar_ptr_to_stdstring(g_app_info_get_id(const_cast<GAppInfo*>(gobj())));
}
std::string AppInfo::get_name() const
{
return Glib::convert_const_gchar_ptr_to_stdstring(g_app_info_get_name(const_cast<GAppInfo*>(gobj())));
}
std::string AppInfo::get_description() const
{
return Glib::convert_const_gchar_ptr_to_stdstring(g_app_info_get_description(const_cast<GAppInfo*>(gobj())));
}
std::string AppInfo::get_executable() const
{
return Glib::convert_const_gchar_ptr_to_stdstring(g_app_info_get_executable(const_cast<GAppInfo*>(gobj())));
}
Glib::RefPtr<Icon> AppInfo::get_icon()
{
Glib::RefPtr<Icon> retvalue = Glib::wrap(g_app_info_get_icon(gobj()));
if(retvalue)
retvalue->reference(); //The function does not do a ref for us.
return retvalue;
}
const Glib::RefPtr<const Icon> AppInfo::get_icon() const
{
return const_cast<AppInfo*>(this)->get_icon();
}
#ifdef GLIBMM_EXCEPTIONS_ENABLED
bool AppInfo::launch(const Glib::ListHandle<std::string>& files, const Glib::RefPtr<AppLaunchContext>& launch_context)
#else
bool AppInfo::launch(const Glib::ListHandle<std::string>& files, const Glib::RefPtr<AppLaunchContext>& launch_context, std::auto_ptr<Glib::Error>& error)
#endif //GLIBMM_EXCEPTIONS_ENABLED
{
GError* gerror = 0;
bool retvalue = g_app_info_launch(gobj(), files.data(), Glib::unwrap(launch_context), &(gerror));
#ifdef GLIBMM_EXCEPTIONS_ENABLED
if(gerror)
::Glib::Error::throw_exception(gerror);
#else
if(gerror)
error = ::Glib::Error::throw_exception(gerror);
#endif //GLIBMM_EXCEPTIONS_ENABLED
return retvalue;
}
bool AppInfo::supports_uris() const
{
return g_app_info_supports_uris(const_cast<GAppInfo*>(gobj()));
}
bool AppInfo::supports_files() const
{
return g_app_info_supports_files(const_cast<GAppInfo*>(gobj()));
}
#ifdef GLIBMM_EXCEPTIONS_ENABLED
bool AppInfo::launch_uris(const Glib::ListHandle<std::string>& uris, GAppLaunchContext* launch_context)
#else
bool AppInfo::launch_uris(const Glib::ListHandle<std::string>& uris, GAppLaunchContext* launch_context, std::auto_ptr<Glib::Error>& error)
#endif //GLIBMM_EXCEPTIONS_ENABLED
{
GError* gerror = 0;
bool retvalue = g_app_info_launch_uris(gobj(), uris.data(), launch_context, &(gerror));
#ifdef GLIBMM_EXCEPTIONS_ENABLED
if(gerror)
::Glib::Error::throw_exception(gerror);
#else
if(gerror)
error = ::Glib::Error::throw_exception(gerror);
#endif //GLIBMM_EXCEPTIONS_ENABLED
return retvalue;
}
bool AppInfo::should_show() const
{
return g_app_info_should_show(const_cast<GAppInfo*>(gobj()));
}
#ifdef GLIBMM_EXCEPTIONS_ENABLED
bool AppInfo::set_as_default_for_type(const std::string& content_type)
#else
bool AppInfo::set_as_default_for_type(const std::string& content_type, std::auto_ptr<Glib::Error>& error)
#endif //GLIBMM_EXCEPTIONS_ENABLED
{
GError* gerror = 0;
bool retvalue = g_app_info_set_as_default_for_type(gobj(), content_type.c_str(), &(gerror));
#ifdef GLIBMM_EXCEPTIONS_ENABLED
if(gerror)
::Glib::Error::throw_exception(gerror);
#else
if(gerror)
error = ::Glib::Error::throw_exception(gerror);
#endif //GLIBMM_EXCEPTIONS_ENABLED
return retvalue;
}
#ifdef GLIBMM_EXCEPTIONS_ENABLED
bool AppInfo::set_as_default_for_extension(const std::string& extension)
#else
bool AppInfo::set_as_default_for_extension(const std::string& extension, std::auto_ptr<Glib::Error>& error)
#endif //GLIBMM_EXCEPTIONS_ENABLED
{
GError* gerror = 0;
bool retvalue = g_app_info_set_as_default_for_extension(gobj(), extension.c_str(), &(gerror));
#ifdef GLIBMM_EXCEPTIONS_ENABLED
if(gerror)
::Glib::Error::throw_exception(gerror);
#else
if(gerror)
error = ::Glib::Error::throw_exception(gerror);
#endif //GLIBMM_EXCEPTIONS_ENABLED
return retvalue;
}
#ifdef GLIBMM_EXCEPTIONS_ENABLED
bool AppInfo::add_supports_type(const std::string& content_type)
#else
bool AppInfo::add_supports_type(const std::string& content_type, std::auto_ptr<Glib::Error>& error)
#endif //GLIBMM_EXCEPTIONS_ENABLED
{
GError* gerror = 0;
bool retvalue = g_app_info_add_supports_type(gobj(), content_type.c_str(), &(gerror));
#ifdef GLIBMM_EXCEPTIONS_ENABLED
if(gerror)
::Glib::Error::throw_exception(gerror);
#else
if(gerror)
error = ::Glib::Error::throw_exception(gerror);
#endif //GLIBMM_EXCEPTIONS_ENABLED
return retvalue;
}
bool AppInfo::can_remove_supports_type() const
{
return g_app_info_can_remove_supports_type(const_cast<GAppInfo*>(gobj()));
}
#ifdef GLIBMM_EXCEPTIONS_ENABLED
bool AppInfo::remove_supports_type(const std::string& content_type)
#else
bool AppInfo::remove_supports_type(const std::string& content_type, std::auto_ptr<Glib::Error>& error)
#endif //GLIBMM_EXCEPTIONS_ENABLED
{
GError* gerror = 0;
bool retvalue = g_app_info_remove_supports_type(gobj(), content_type.c_str(), &(gerror));
#ifdef GLIBMM_EXCEPTIONS_ENABLED
if(gerror)
::Glib::Error::throw_exception(gerror);
#else
if(gerror)
error = ::Glib::Error::throw_exception(gerror);
#endif //GLIBMM_EXCEPTIONS_ENABLED
return retvalue;
}
#ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
#endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
#ifdef GLIBMM_VFUNCS_ENABLED
#endif //GLIBMM_VFUNCS_ENABLED
} // namespace Gio

View File

@@ -0,0 +1,549 @@
// -*- c++ -*-
// Generated by gtkmmproc -- DO NOT MODIFY!
#ifndef _GIOMM_APPINFO_H
#define _GIOMM_APPINFO_H
#include <glibmm.h>
// -*- Mode: C++; indent-tabs-mode: nil; c-basic-offset: 2 -*-
/* Copyright (C) 2007 The gtkmm Development Team
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#ifdef GLIBMM_EXCEPTIONS_ENABLED
#include <exception>
#endif
#include <string>
#include <glibmm/interface.h>
#include <glibmm/object.h>
//#include <giomm/file.h>
#include <giomm/icon.h>
#ifndef DOXYGEN_SHOULD_SKIP_THIS
typedef struct _GAppInfoIface GAppInfoIface;
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
#ifndef DOXYGEN_SHOULD_SKIP_THIS
typedef struct _GAppLaunchContext GAppLaunchContext;
typedef struct _GAppLaunchContextClass GAppLaunchContextClass;
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
namespace Gio
{ class AppLaunchContext_Class; } // namespace Gio
#ifndef DOXYGEN_SHOULD_SKIP_THIS
typedef struct _GAppInfo GAppInfo;
typedef struct _GAppInfoClass GAppInfoClass;
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
namespace Gio
{ class AppInfo_Class; } // namespace Gio
namespace Gio
{
/** @addtogroup giommEnums Enums and Flags */
/**
* @ingroup giommEnums
* @par Bitwise operators:
* <tt>%AppInfoCreateFlags operator|(AppInfoCreateFlags, AppInfoCreateFlags)</tt><br>
* <tt>%AppInfoCreateFlags operator&(AppInfoCreateFlags, AppInfoCreateFlags)</tt><br>
* <tt>%AppInfoCreateFlags operator^(AppInfoCreateFlags, AppInfoCreateFlags)</tt><br>
* <tt>%AppInfoCreateFlags operator~(AppInfoCreateFlags)</tt><br>
* <tt>%AppInfoCreateFlags& operator|=(AppInfoCreateFlags&, AppInfoCreateFlags)</tt><br>
* <tt>%AppInfoCreateFlags& operator&=(AppInfoCreateFlags&, AppInfoCreateFlags)</tt><br>
* <tt>%AppInfoCreateFlags& operator^=(AppInfoCreateFlags&, AppInfoCreateFlags)</tt><br>
*/
enum AppInfoCreateFlags
{
APP_INFO_CREATE_NONE = 0,
APP_INFO_CREATE_NEEDS_TERMINAL = 1 << 0,
APP_INFO_CREATE_SUPPORTS_URIS = 1 << 1
};
/** @ingroup giommEnums */
inline AppInfoCreateFlags operator|(AppInfoCreateFlags lhs, AppInfoCreateFlags rhs)
{ return static_cast<AppInfoCreateFlags>(static_cast<unsigned>(lhs) | static_cast<unsigned>(rhs)); }
/** @ingroup giommEnums */
inline AppInfoCreateFlags operator&(AppInfoCreateFlags lhs, AppInfoCreateFlags rhs)
{ return static_cast<AppInfoCreateFlags>(static_cast<unsigned>(lhs) & static_cast<unsigned>(rhs)); }
/** @ingroup giommEnums */
inline AppInfoCreateFlags operator^(AppInfoCreateFlags lhs, AppInfoCreateFlags rhs)
{ return static_cast<AppInfoCreateFlags>(static_cast<unsigned>(lhs) ^ static_cast<unsigned>(rhs)); }
/** @ingroup giommEnums */
inline AppInfoCreateFlags operator~(AppInfoCreateFlags flags)
{ return static_cast<AppInfoCreateFlags>(~static_cast<unsigned>(flags)); }
/** @ingroup giommEnums */
inline AppInfoCreateFlags& operator|=(AppInfoCreateFlags& lhs, AppInfoCreateFlags rhs)
{ return (lhs = static_cast<AppInfoCreateFlags>(static_cast<unsigned>(lhs) | static_cast<unsigned>(rhs))); }
/** @ingroup giommEnums */
inline AppInfoCreateFlags& operator&=(AppInfoCreateFlags& lhs, AppInfoCreateFlags rhs)
{ return (lhs = static_cast<AppInfoCreateFlags>(static_cast<unsigned>(lhs) & static_cast<unsigned>(rhs))); }
/** @ingroup giommEnums */
inline AppInfoCreateFlags& operator^=(AppInfoCreateFlags& lhs, AppInfoCreateFlags rhs)
{ return (lhs = static_cast<AppInfoCreateFlags>(static_cast<unsigned>(lhs) ^ static_cast<unsigned>(rhs))); }
class AppInfo;
class File;
/** This is used to handle, for instance, startup notification and launching of the new application on the same screen as the launching window.
* See also AppInfo.
*
* @newin2p16
*/
class AppLaunchContext : public Glib::Object
{
#ifndef DOXYGEN_SHOULD_SKIP_THIS
public:
typedef AppLaunchContext CppObjectType;
typedef AppLaunchContext_Class CppClassType;
typedef GAppLaunchContext BaseObjectType;
typedef GAppLaunchContextClass BaseClassType;
private: friend class AppLaunchContext_Class;
static CppClassType applaunchcontext_class_;
private:
// noncopyable
AppLaunchContext(const AppLaunchContext&);
AppLaunchContext& operator=(const AppLaunchContext&);
protected:
explicit AppLaunchContext(const Glib::ConstructParams& construct_params);
explicit AppLaunchContext(GAppLaunchContext* castitem);
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
public:
virtual ~AppLaunchContext();
#ifndef DOXYGEN_SHOULD_SKIP_THIS
static GType get_type() G_GNUC_CONST;
static GType get_base_type() G_GNUC_CONST;
#endif
///Provides access to the underlying C GObject.
GAppLaunchContext* gobj() { return reinterpret_cast<GAppLaunchContext*>(gobject_); }
///Provides access to the underlying C GObject.
const GAppLaunchContext* gobj() const { return reinterpret_cast<GAppLaunchContext*>(gobject_); }
///Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
GAppLaunchContext* gobj_copy();
private:
protected:
AppLaunchContext();
public:
static Glib::RefPtr<AppLaunchContext> create();
/** Gets the display string for the display. This is used to ensure new
* applications are started on the same display as the launching
* application.
* @param info A AppInfo.
* @param files A List of files.
* @return A display string for the display.
*/
std::string get_display(const Glib::RefPtr<AppInfo>& info, const Glib::ListHandle< Glib::RefPtr<Gio::File> >& files);
/** Initiates startup notification for the applicaiont and returns the
* DESKTOP_STARTUP_ID for the launched operation, if supported.
*
* Startup notification IDs are defined in the FreeDesktop.Org Startup
* Notifications standard, at
* .
* @param info A AppInfo.
* @param files A List of files.
* @return A startup notification ID for the application, or <tt>0</tt> if
* not supported.
*/
std::string get_startup_notify_id(const Glib::RefPtr<AppInfo>& info, const Glib::ListHandle< Glib::RefPtr<Gio::File> >& files);
/** Called when an application has failed to launch, so that it can cancel
* the application startup notification started in g_app_launch_context_get_startup_notify_id().
* @param startup_notify_id The startup notification id that was returned by g_app_launch_context_get_startup_notify_id().
*/
void launch_failed(const std::string& startup_notify_id);
public:
public:
//C++ methods used to invoke GTK+ virtual functions:
#ifdef GLIBMM_VFUNCS_ENABLED
#endif //GLIBMM_VFUNCS_ENABLED
protected:
//GTK+ Virtual Functions (override these to change behaviour):
#ifdef GLIBMM_VFUNCS_ENABLED
#endif //GLIBMM_VFUNCS_ENABLED
//Default Signal Handlers::
#ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
#endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
};
/** Application information, to describe applications installed on the system,
* and launch them.
* See also AppLaunchContext.
*
* @newin2p16
*/
class AppInfo : public Glib::Interface
{
#ifndef DOXYGEN_SHOULD_SKIP_THIS
public:
typedef AppInfo CppObjectType;
typedef AppInfo_Class CppClassType;
typedef GAppInfo BaseObjectType;
typedef GAppInfoIface BaseClassType;
private:
friend class AppInfo_Class;
static CppClassType appinfo_class_;
// noncopyable
AppInfo(const AppInfo&);
AppInfo& operator=(const AppInfo&);
protected:
AppInfo(); // you must derive from this class
/** Called by constructors of derived classes. Provide the result of
* the Class init() function to ensure that it is properly
* initialized.
*
* @param interface_class The Class object for the derived type.
*/
explicit AppInfo(const Glib::Interface_Class& interface_class);
public:
// This is public so that C++ wrapper instances can be
// created for C instances of unwrapped types.
// For instance, if an unexpected C type implements the C interface.
explicit AppInfo(GAppInfo* castitem);
protected:
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
public:
virtual ~AppInfo();
static void add_interface(GType gtype_implementer);
#ifndef DOXYGEN_SHOULD_SKIP_THIS
static GType get_type() G_GNUC_CONST;
static GType get_base_type() G_GNUC_CONST;
#endif
///Provides access to the underlying C GObject.
GAppInfo* gobj() { return reinterpret_cast<GAppInfo*>(gobject_); }
///Provides access to the underlying C GObject.
const GAppInfo* gobj() const { return reinterpret_cast<GAppInfo*>(gobject_); }
private:
public:
#ifdef GLIBMM_EXCEPTIONS_ENABLED
static Glib::RefPtr<AppInfo> create_from_commandline(const std::string& commandline,
const std::string& application_name,
AppInfoCreateFlags flags);
#else
static Glib::RefPtr<AppInfo> create_from_commandline(const std::string& commandline,
const std::string& application_name,
AppInfoCreateFlags flags,
std::auto_ptr<Glib::Error>& error);
#endif // GLIBMM_EXCEPTIONS_ENABLED
// Note that the implementation of equal() is virtual via equal_vfunc().
/** Checks if two AppInfos are equal.
* @param appinfo2 The second AppInfo.
* @return <tt>true</tt> if @a appinfo1 is equal to @a appinfo2. <tt>false</tt> otherwise.
*/
bool equal(const Glib::RefPtr<AppInfo>& other) const;
/** Gets the ID of an application. An id is a string that
* identifies the application. The exact format of the id is
* platform dependent. For instance, on Unix this is the
* desktop file id from the xdg menu specification.
*
* Note that the returned ID may be <tt>0</tt>, depending on how
* the @a appinfo has been constructed.
* @return A string containing the application's ID.
*/
std::string get_id() const;
/** Gets the installed name of the application.
* @return The name of the application for @a appinfo.
*/
std::string get_name() const;
/** Gets a human-readable description of an installed application.
* @return A string containing a description of the
* application @a appinfo, or <tt>0</tt> if none.
*/
std::string get_description() const;
/** Gets the executable's name for the installed application.
* @return A string containing the @a appinfo's application
* binary's name.
*/
std::string get_executable() const;
/** Gets the icon for the application.
* @return The default Icon for @a appinfo.
*/
Glib::RefPtr<Icon> get_icon();
/** Gets the icon for the application.
* @return The default Icon for @a appinfo.
*/
const Glib::RefPtr<const Icon> get_icon() const;
/** Launches the application. Passes @a files to the launched application
* as arguments, using the optional @a launch_context to get information
* about the details of the launcher (like what screen it is on).
* On error, @a error will be set accordingly.
*
* To lauch the application without arguments pass a <tt>0</tt> @a files list.
*
* Note that even if the launch is successful the application launched
* can fail to start if it runs into problems during startup. There is
* no way to detect this.
*
* Some URIs can be changed when passed through a GFile (for instance
* unsupported uris with strange formats like mailto:), so if you have
* a textual uri you want to pass in as argument, consider using
* g_app_info_launch_uris() instead.
* @param files A List of File objects.
* @param launch_context A AppLaunchContext.
* @return <tt>true</tt> on successful launch, <tt>false</tt> otherwise.
*/
#ifdef GLIBMM_EXCEPTIONS_ENABLED
bool launch(const Glib::ListHandle<std::string>& files,
const Glib::RefPtr<AppLaunchContext>& launch_context);
#else
bool launch(const Glib::ListHandle<std::string>& files, const Glib::RefPtr<AppLaunchContext>& launch_context, std::auto_ptr<Glib::Error>& error);
#endif //GLIBMM_EXCEPTIONS_ENABLED
/** Checks if the application supports reading files and directories from URIs.
* @return <tt>true</tt> if the @a appinfo supports URIs.
*/
bool supports_uris() const;
/** Checks if the application accepts files as arguments.
* @return <tt>true</tt> if the @a appinfo supports files.
*/
bool supports_files() const;
/** Launches the application. Passes @a uris to the launched application
* as arguments, using the optional @a launch_context to get information
* about the details of the launcher (like what screen it is on).
* On error, @a error will be set accordingly.
*
* To lauch the application without arguments pass a <tt>0</tt> @a uris list.
*
* Note that even if the launch is successful the application launched
* can fail to start if it runs into problems during startup. There is
* no way to detect this.
* @param uris A List containing URIs to launch.
* @param launch_context A AppLaunchContext.
* @return <tt>true</tt> on successful launch, <tt>false</tt> otherwise.
*/
#ifdef GLIBMM_EXCEPTIONS_ENABLED
bool launch_uris(const Glib::ListHandle<std::string>& uris,
GAppLaunchContext* launch_context);
#else
bool launch_uris(const Glib::ListHandle<std::string>& uris, GAppLaunchContext* launch_context, std::auto_ptr<Glib::Error>& error);
#endif //GLIBMM_EXCEPTIONS_ENABLED
/** Checks if the application info should be shown in menus that
* list available applications.
* @return <tt>true</tt> if the @a appinfo should be shown, <tt>false</tt> otherwise.
*/
bool should_show() const;
/** Sets the application as the default handler for a given type.
* @param content_type The content type.
* @return <tt>true</tt> on success, <tt>false</tt> on error.
*/
#ifdef GLIBMM_EXCEPTIONS_ENABLED
bool set_as_default_for_type(const std::string& content_type);
#else
bool set_as_default_for_type(const std::string& content_type, std::auto_ptr<Glib::Error>& error);
#endif //GLIBMM_EXCEPTIONS_ENABLED
/** Sets the application as the default handler for the given file extention.
* @param extension A string containing the file extension (without the dot).
* @return <tt>true</tt> on success, <tt>false</tt> on error.
*/
#ifdef GLIBMM_EXCEPTIONS_ENABLED
bool set_as_default_for_extension(const std::string& extension);
#else
bool set_as_default_for_extension(const std::string& extension, std::auto_ptr<Glib::Error>& error);
#endif //GLIBMM_EXCEPTIONS_ENABLED
/** Adds a content type to the application information to indicate the
* application is capable of opening files with the given content type.
* @param content_type A string.
* @return <tt>true</tt> on success, <tt>false</tt> on error.
*/
#ifdef GLIBMM_EXCEPTIONS_ENABLED
bool add_supports_type(const std::string& content_type);
#else
bool add_supports_type(const std::string& content_type, std::auto_ptr<Glib::Error>& error);
#endif //GLIBMM_EXCEPTIONS_ENABLED
/** Checks if a supported content type can be removed from an application.
* @return <tt>true</tt> if it is possible to remove supported
* content types from a given @a appinfo, <tt>false</tt> if not.
*/
bool can_remove_supports_type() const;
/** Removes a supported type from an application, if possible.
* @param content_type A string.
* @return <tt>true</tt> on success, <tt>false</tt> on error.
*/
#ifdef GLIBMM_EXCEPTIONS_ENABLED
bool remove_supports_type(const std::string& content_type);
#else
bool remove_supports_type(const std::string& content_type, std::auto_ptr<Glib::Error>& error);
#endif //GLIBMM_EXCEPTIONS_ENABLED
static Glib::ListHandle< Glib::RefPtr<AppInfo> > get_all();
static Glib::ListHandle< Glib::RefPtr<AppInfo> > get_all_for_type(const std::string& content_type);
static Glib::RefPtr<AppInfo> get_default_for_type(const std::string& content_type, bool must_support_uris = true);
static Glib::RefPtr<AppInfo> get_default_for_uri_scheme(const std::string& uri_scheme);
protected:
//_WRAP_VFUNC(Glib::RefPtr<AppInfo> dup(), "dup")
//_WRAP_VFUNC(bool equal(const Glib::RefPtr<AppInfo>& appinfo2), "equal")
//_WRAP_VFUNC(std::string get_id() const, "get_id")
//_WRAP_VFUNC(std::string get_name() const, "get_name")
//_WRAP_VFUNC(std::string get_description() const, "get_description")
//_WRAP_VFUNC(std::string get_executable() const, "get_executable")
//_WRAP_VFUNC(Glib::RefPtr<Icon> get_icon() const, "get_icon")
//_WRAP_VFUNC(bool launch(const Glib::ListHandle<std::string>& filenames, const Glib::RefPtr<AppLaunchContext>& launch_context, GError** error), "launch")
//_WRAP_VFUNC(bool supports_uris() const, "supports_uris")
//_WRAP_VFUNC(bool supports_files() const, "supports_files")
//_WRAP_VFUNC(bool launch_uris(const Glib::ListHandle<std::string>& uris, const Glib::RefPtr<AppLaunchContext>& launch_context, GError** error), "launch_uris")
//_WRAP_VFUNC(bool should_show() const, "should_show")
//_WRAP_VFUNC(bool set_as_default_for_type(const std::string& content_type, GError** error), "set_as_default_for_type")
//_WRAP_VFUNC(bool set_as_default_for_extension(const std::string& extension, GError** error), "set_as_default_for_extension")
//_WRAP_VFUNC(bool add_supports_type(const std::string& content_type, GError** error), "add_supports_type")
//_WRAP_VFUNC(bool can_remove_supports_type() const, "can_remove_supports_type")
//_WRAP_VFUNC(bool remove_supports_type(const std::string& content_type, GError** error), "remove_supports_type")
public:
public:
//C++ methods used to invoke GTK+ virtual functions:
#ifdef GLIBMM_VFUNCS_ENABLED
#endif //GLIBMM_VFUNCS_ENABLED
protected:
//GTK+ Virtual Functions (override these to change behaviour):
#ifdef GLIBMM_VFUNCS_ENABLED
#endif //GLIBMM_VFUNCS_ENABLED
//Default Signal Handlers::
#ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
#endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
};
} // namespace Gio
namespace Glib
{
/** A Glib::wrap() method for this object.
*
* @param object The C instance.
* @param take_copy False if the result should take ownership of the C instance. True if it should take a new copy or ref.
* @result A C++ instance that wraps this C instance.
*
* @relates Gio::AppLaunchContext
*/
Glib::RefPtr<Gio::AppLaunchContext> wrap(GAppLaunchContext* object, bool take_copy = false);
}
namespace Glib
{
/** A Glib::wrap() method for this object.
*
* @param object The C instance.
* @param take_copy False if the result should take ownership of the C instance. True if it should take a new copy or ref.
* @result A C++ instance that wraps this C instance.
*
* @relates Gio::AppInfo
*/
Glib::RefPtr<Gio::AppInfo> wrap(GAppInfo* object, bool take_copy = false);
} // namespace Glib
#endif /* _GIOMM_APPINFO_H */

View File

@@ -0,0 +1,212 @@
// Generated by gtkmmproc -- DO NOT MODIFY!
#include <giomm/asyncresult.h>
#include <giomm/private/asyncresult_p.h>
// -*- Mode: C++; indent-tabs-mode: nil; c-basic-offset: 2 -*-
/* Copyright (C) 2007 The giomm Development Team
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
//#include <gio/gasyncresult.h> //We are not allowed to include individual headers.
#include <gio/gio.h>
namespace
{
} // anonymous namespace
namespace Glib
{
Glib::RefPtr<Gio::AsyncResult> wrap(GAsyncResult* object, bool take_copy)
{
return Glib::RefPtr<Gio::AsyncResult>( dynamic_cast<Gio::AsyncResult*> (Glib::wrap_auto_interface<Gio::AsyncResult> ((GObject*)(object), take_copy)) );
//We use dynamic_cast<> in case of multiple inheritance.
}
} // namespace Glib
namespace Gio
{
/* The *_Class implementation: */
const Glib::Interface_Class& AsyncResult_Class::init()
{
if(!gtype_) // create the GType if necessary
{
// Glib::Interface_Class has to know the interface init function
// in order to add interfaces to implementing types.
class_init_func_ = &AsyncResult_Class::iface_init_function;
// We can not derive from another interface, and it is not necessary anyway.
gtype_ = g_async_result_get_type();
}
return *this;
}
void AsyncResult_Class::iface_init_function(void* g_iface, void*)
{
BaseClassType *const klass = static_cast<BaseClassType*>(g_iface);
//This is just to avoid an "unused variable" warning when there are no vfuncs or signal handlers to connect.
//This is a temporary fix until I find out why I can not seem to derive a GtkFileChooser interface. murrayc
g_assert(klass != 0);
#ifdef GLIBMM_VFUNCS_ENABLED
klass->get_source_object = &get_source_object_vfunc_callback;
#endif //GLIBMM_VFUNCS_ENABLED
#ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
#endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
}
#ifdef GLIBMM_VFUNCS_ENABLED
GObject* AsyncResult_Class::get_source_object_vfunc_callback(GAsyncResult* self)
{
Glib::ObjectBase *const obj_base = static_cast<Glib::ObjectBase*>(
Glib::ObjectBase::_get_current_wrapper((GObject*)self));
// Non-gtkmmproc-generated custom classes implicitly call the default
// Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
// generated classes can use this optimisation, which avoids the unnecessary
// parameter conversions if there is no possibility of the virtual function
// being overridden:
if(obj_base && obj_base->is_derived_())
{
CppObjectType *const obj = dynamic_cast<CppObjectType* const>(obj_base);
if(obj) // This can be NULL during destruction.
{
#ifdef GLIBMM_EXCEPTIONS_ENABLED
try // Trap C++ exceptions which would normally be lost because this is a C callback.
{
#endif //GLIBMM_EXCEPTIONS_ENABLED
// Call the virtual member method, which derived classes might override.
return Glib::unwrap(obj->get_source_object_vfunc());
#ifdef GLIBMM_EXCEPTIONS_ENABLED
}
catch(...)
{
Glib::exception_handlers_invoke();
}
#endif //GLIBMM_EXCEPTIONS_ENABLED
}
}
BaseClassType *const base = static_cast<BaseClassType*>(
g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface).
g_type_interface_peek(G_OBJECT_GET_CLASS(self), CppObjectType::get_type()) // Get the interface.
) );
// Call the original underlying C function:
if(base && base->get_source_object)
return (*base->get_source_object)(self);
typedef GObject* RType;
return RType();
}
#endif //GLIBMM_VFUNCS_ENABLED
#ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
#endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
Glib::ObjectBase* AsyncResult_Class::wrap_new(GObject* object)
{
return new AsyncResult((GAsyncResult*)(object));
}
/* The implementation: */
AsyncResult::AsyncResult()
:
Glib::Interface(asyncresult_class_.init())
{}
AsyncResult::AsyncResult(GAsyncResult* castitem)
:
Glib::Interface((GObject*)(castitem))
{}
AsyncResult::AsyncResult(const Glib::Interface_Class& interface_class)
: Glib::Interface(interface_class)
{
}
AsyncResult::~AsyncResult()
{}
// static
void AsyncResult::add_interface(GType gtype_implementer)
{
asyncresult_class_.init().add_interface(gtype_implementer);
}
AsyncResult::CppClassType AsyncResult::asyncresult_class_; // initialize static member
GType AsyncResult::get_type()
{
return asyncresult_class_.init().get_type();
}
GType AsyncResult::get_base_type()
{
return g_async_result_get_type();
}
Glib::RefPtr<Glib::Object> AsyncResult::get_source_object()
{
return Glib::wrap(g_async_result_get_source_object(gobj()));
}
Glib::RefPtr<const Glib::Object> AsyncResult::get_source_object() const
{
return const_cast<AsyncResult*>(this)->get_source_object();
}
#ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
#endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
#ifdef GLIBMM_VFUNCS_ENABLED
Glib::RefPtr<Glib::Object> Gio::AsyncResult::get_source_object_vfunc()
{
BaseClassType *const base = static_cast<BaseClassType*>(
g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface).
g_type_interface_peek(G_OBJECT_GET_CLASS(gobject_), CppObjectType::get_type()) // Get the interface.
) );
if(base && base->get_source_object)
return Glib::wrap((*base->get_source_object)(gobj()));
typedef Glib::RefPtr<Glib::Object> RType;
return RType();
}
#endif //GLIBMM_VFUNCS_ENABLED
} // namespace Gio

View File

@@ -0,0 +1,235 @@
// -*- c++ -*-
// Generated by gtkmmproc -- DO NOT MODIFY!
#ifndef _GIOMM_ASYNCRESULT_H
#define _GIOMM_ASYNCRESULT_H
#include <glibmm.h>
// -*- Mode: C++; indent-tabs-mode: nil; c-basic-offset: 2 -*-
/* Copyright (C) 2007 The giomm Development Team
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#include <glibmm/interface.h>
#include <glibmm/object.h>
#ifndef DOXYGEN_SHOULD_SKIP_THIS
typedef struct _GAsyncResultIface GAsyncResultIface;
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
#ifndef DOXYGEN_SHOULD_SKIP_THIS
typedef struct _GAsyncResult GAsyncResult;
typedef struct _GAsyncResultClass GAsyncResultClass;
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
namespace Gio
{ class AsyncResult_Class; } // namespace Gio
namespace Gio
{
class AsyncResult;
/** A function that will be called when an asynchronous operation within GIO has been completed.
* @param result The asynchronous function's results.
*
* For instance,
* @code
* void on_async_ready(Glib::RefPtr<AsyncResult>& result);
* @endcode
*
* @newin2p16
*/
typedef sigc::slot<void, Glib::RefPtr<AsyncResult>& > SlotAsyncReady;
/** Provides a base class for implementing asynchronous function results.
* Asynchronous operations are broken up into two separate operations which are chained together by a SlotAsyncReady.
* To begin an asynchronous operation, provide a SlotAsyncReady to the asynchronous function. This callback will be triggered
* when the operation has completed, and will be passed an AsyncResult instance filled with the details of the operation's success or
* failure, the object the asynchronous function was started for and any error codes returned. The asynchronous callback function is then
* expected to call the corresponding "_finish()" function with the object the function was called for, and the AsyncResult instance.
*
* The purpose of the "_finish()" function is to take the generic result of type AsyncResult and return the specific result that the operation
* in question yields (e.g. a FileEnumerator for an "enumerate children" operation). If the result or error status of the operation is not needed,
* there is no need to call the "_finish()" function and GIO will take care of cleaning up the result and error information after the
* SlotAsyncReady returns. You may also store the AsyncResult and call "_finish()" later.
*
* Example of a typical asynchronous operation flow:
* @code
* void _theoretical_frobnitz_async(const Glib::RefPtr<Theoretical>& t,
* const SlotAsyncReady& slot);
*
* gboolean _theoretical_frobnitz_finish(const Glib::RefPtr<Theoretical>& t,
* const Glib::RefPtr<AsyncResult>& result);
*
* static void
* on_frobnitz_result(Glib::RefPtr<AsyncResult>& result)
* {
*
* Glib::RefPtr<Glib::Object> source_object = result->get_source_object();
* bool success = _theoretical_frobnitz_finish(source_object, res);
*
* if (success)
* std::cout << "Hurray" << std::endl;
* else
* std::cout << "Uh oh!" << std::endl;
*
* ...
* }
*
* int main (int argc, void *argv[])
* {
* ...
*
* _theoretical_frobnitz_async (theoretical_data,
* sigc::ptr_fun(&on_frobnitz_result) );
*
* ...
* }
* @endcode
*
* The async function could also take an optional Glib::Cancellable object, allowing the calling function to cancel the asynchronous operation.
*
* The callback for an asynchronous operation is called only once, and is always called, even in the case of a cancelled operation.
* On cancellation the result is a ERROR_CANCELLED error.
*
* Some ascynchronous operations are implemented using synchronous calls. These are run in a separate GThread, but otherwise they are sent
* to the Main Event Loop and processed in an idle function. So, if you truly need asynchronous operations, make sure to initialize GThread.
*
* @newin2p16
*/
class AsyncResult : public Glib::Interface
{
#ifndef DOXYGEN_SHOULD_SKIP_THIS
public:
typedef AsyncResult CppObjectType;
typedef AsyncResult_Class CppClassType;
typedef GAsyncResult BaseObjectType;
typedef GAsyncResultIface BaseClassType;
private:
friend class AsyncResult_Class;
static CppClassType asyncresult_class_;
// noncopyable
AsyncResult(const AsyncResult&);
AsyncResult& operator=(const AsyncResult&);
protected:
AsyncResult(); // you must derive from this class
/** Called by constructors of derived classes. Provide the result of
* the Class init() function to ensure that it is properly
* initialized.
*
* @param interface_class The Class object for the derived type.
*/
explicit AsyncResult(const Glib::Interface_Class& interface_class);
public:
// This is public so that C++ wrapper instances can be
// created for C instances of unwrapped types.
// For instance, if an unexpected C type implements the C interface.
explicit AsyncResult(GAsyncResult* castitem);
protected:
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
public:
virtual ~AsyncResult();
static void add_interface(GType gtype_implementer);
#ifndef DOXYGEN_SHOULD_SKIP_THIS
static GType get_type() G_GNUC_CONST;
static GType get_base_type() G_GNUC_CONST;
#endif
///Provides access to the underlying C GObject.
GAsyncResult* gobj() { return reinterpret_cast<GAsyncResult*>(gobject_); }
///Provides access to the underlying C GObject.
const GAsyncResult* gobj() const { return reinterpret_cast<GAsyncResult*>(gobject_); }
private:
public:
//Note that this returns a reference, unlike most GTK+ get_*() functions,
//so we don't need to use refreturn.
/** Gets the source object from a AsyncResult.
* @return The source object for the @a res.
*/
Glib::RefPtr<Glib::Object> get_source_object();
/** Gets the source object from a AsyncResult.
* @return The source object for the @a res.
*/
Glib::RefPtr<const Glib::Object> get_source_object() const;
#ifdef GLIBMM_VFUNCS_ENABLED
virtual Glib::RefPtr<Glib::Object> get_source_object_vfunc();
#endif //GLIBMM_VFUNCS_ENABLED
public:
public:
//C++ methods used to invoke GTK+ virtual functions:
#ifdef GLIBMM_VFUNCS_ENABLED
#endif //GLIBMM_VFUNCS_ENABLED
protected:
//GTK+ Virtual Functions (override these to change behaviour):
#ifdef GLIBMM_VFUNCS_ENABLED
#endif //GLIBMM_VFUNCS_ENABLED
//Default Signal Handlers::
#ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
#endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
};
} // namespace Gio
namespace Glib
{
/** A Glib::wrap() method for this object.
*
* @param object The C instance.
* @param take_copy False if the result should take ownership of the C instance. True if it should take a new copy or ref.
* @result A C++ instance that wraps this C instance.
*
* @relates Gio::AsyncResult
*/
Glib::RefPtr<Gio::AsyncResult> wrap(GAsyncResult* object, bool take_copy = false);
} // namespace Glib
#endif /* _GIOMM_ASYNCRESULT_H */

View File

@@ -0,0 +1,339 @@
// Generated by gtkmmproc -- DO NOT MODIFY!
#include <giomm/bufferedinputstream.h>
#include <giomm/private/bufferedinputstream_p.h>
// -*- Mode: C++; indent-tabs-mode: nil; c-basic-offset: 2 -*-
/* Copyright (C) 2008 The gtkmm Development Team
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#include <gio/gio.h>
#include "slot_async.h"
namespace Gio
{
Glib::RefPtr<BufferedInputStream> BufferedInputStream::create_sized(const Glib::RefPtr<InputStream>& base_stream, gsize size)
{
return Glib::RefPtr<Gio::BufferedInputStream>(new BufferedInputStream(base_stream, size));
}
#ifdef GLIBMM_EXCEPTIONS_ENABLED
gssize BufferedInputStream::fill(gssize count)
#else
gssize BufferedInputStream::fill(gssize count, std::auto_ptr<Glib::Error>& error)
#endif //GLIBMM_EXCEPTIONS_ENABLED
{
GError* gerror = 0;
gssize retvalue = g_buffered_input_stream_fill(const_cast<GBufferedInputStream*>(gobj()), count, NULL, &(gerror));
#ifdef GLIBMM_EXCEPTIONS_ENABLED
if(gerror)
::Glib::Error::throw_exception(gerror);
#else
if(gerror)
error = ::Glib::Error::throw_exception(gerror);
#endif //GLIBMM_EXCEPTIONS_ENABLED
return retvalue;
}
void BufferedInputStream::fill_async(const SlotAsyncReady& slot,
gssize count,
const Glib::RefPtr<Cancellable>& cancellable,
int io_priority)
{
// 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_buffered_input_stream_fill_async(gobj(),
count,
io_priority,
cancellable->gobj(),
&SignalProxy_async_callback,
slot_copy);
}
void BufferedInputStream::fill_async(const SlotAsyncReady& slot,
gssize count,
int io_priority)
{
// 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_buffered_input_stream_fill_async(gobj(),
count,
io_priority,
NULL,
&SignalProxy_async_callback,
slot_copy);
}
#ifdef GLIBMM_EXCEPTIONS_ENABLED
int BufferedInputStream::read_byte()
#else
int BufferedInputStream::read_byte(std::auto_ptr<Glib::Error>& error)
#endif //GLIBMM_EXCEPTIONS_ENABLED
{
GError* gerror = 0;
int retvalue = g_buffered_input_stream_read_byte(gobj(), NULL, &(gerror));
#ifdef GLIBMM_EXCEPTIONS_ENABLED
if(gerror)
::Glib::Error::throw_exception(gerror);
#else
if(gerror)
error = ::Glib::Error::throw_exception(gerror);
#endif //GLIBMM_EXCEPTIONS_ENABLED
return retvalue;
}
} // namespace Gio
namespace
{
} // anonymous namespace
namespace Glib
{
Glib::RefPtr<Gio::BufferedInputStream> wrap(GBufferedInputStream* object, bool take_copy)
{
return Glib::RefPtr<Gio::BufferedInputStream>( dynamic_cast<Gio::BufferedInputStream*> (Glib::wrap_auto ((GObject*)(object), take_copy)) );
//We use dynamic_cast<> in case of multiple inheritance.
}
} /* namespace Glib */
namespace Gio
{
/* The *_Class implementation: */
const Glib::Class& BufferedInputStream_Class::init()
{
if(!gtype_) // create the GType if necessary
{
// Glib::Class has to know the class init function to clone custom types.
class_init_func_ = &BufferedInputStream_Class::class_init_function;
// This is actually just optimized away, apparently with no harm.
// Make sure that the parent type has been created.
//CppClassParent::CppObjectType::get_type();
// Create the wrapper type, with the same class/instance size as the base type.
register_derived_type(g_buffered_input_stream_get_type());
// Add derived versions of interfaces, if the C type implements any interfaces:
}
return *this;
}
void BufferedInputStream_Class::class_init_function(void* g_class, void* class_data)
{
BaseClassType *const klass = static_cast<BaseClassType*>(g_class);
CppClassParent::class_init_function(klass, class_data);
#ifdef GLIBMM_VFUNCS_ENABLED
#endif //GLIBMM_VFUNCS_ENABLED
#ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
#endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
}
#ifdef GLIBMM_VFUNCS_ENABLED
#endif //GLIBMM_VFUNCS_ENABLED
#ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
#endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
Glib::ObjectBase* BufferedInputStream_Class::wrap_new(GObject* object)
{
return new BufferedInputStream((GBufferedInputStream*)object);
}
/* The implementation: */
GBufferedInputStream* BufferedInputStream::gobj_copy()
{
reference();
return gobj();
}
BufferedInputStream::BufferedInputStream(const Glib::ConstructParams& construct_params)
:
Gio::FilterInputStream(construct_params)
{
}
BufferedInputStream::BufferedInputStream(GBufferedInputStream* castitem)
:
Gio::FilterInputStream((GFilterInputStream*)(castitem))
{}
BufferedInputStream::~BufferedInputStream()
{}
BufferedInputStream::CppClassType BufferedInputStream::bufferedinputstream_class_; // initialize static member
GType BufferedInputStream::get_type()
{
return bufferedinputstream_class_.init().get_type();
}
GType BufferedInputStream::get_base_type()
{
return g_buffered_input_stream_get_type();
}
BufferedInputStream::BufferedInputStream(const Glib::RefPtr<InputStream>& base_stream)
:
// Mark this class as non-derived to allow C++ vfuncs to be skipped.
Glib::ObjectBase(0),
Gio::FilterInputStream(Glib::ConstructParams(bufferedinputstream_class_.init(), "base_stream", const_cast<GInputStream*>(Glib::unwrap(base_stream)), static_cast<char*>(0)))
{
}
BufferedInputStream::BufferedInputStream(const Glib::RefPtr<InputStream>& base_stream, gsize size)
:
// Mark this class as non-derived to allow C++ vfuncs to be skipped.
Glib::ObjectBase(0),
Gio::FilterInputStream(Glib::ConstructParams(bufferedinputstream_class_.init(), "base_stream", const_cast<GInputStream*>(Glib::unwrap(base_stream)), "size", size, static_cast<char*>(0)))
{
}
Glib::RefPtr<BufferedInputStream> BufferedInputStream::create(const Glib::RefPtr<InputStream>& base_stream)
{
return Glib::RefPtr<BufferedInputStream>( new BufferedInputStream(base_stream) );
}
gsize BufferedInputStream::get_buffer_size() const
{
return g_buffered_input_stream_get_buffer_size(const_cast<GBufferedInputStream*>(gobj()));
}
void BufferedInputStream::set_buffer_size(gsize size)
{
g_buffered_input_stream_set_buffer_size(gobj(), size);
}
gsize BufferedInputStream::get_available() const
{
return g_buffered_input_stream_get_available(const_cast<GBufferedInputStream*>(gobj()));
}
gsize BufferedInputStream::peek(void* buffer, gsize offset, gsize count) const
{
return g_buffered_input_stream_peek(const_cast<GBufferedInputStream*>(gobj()), buffer, offset, count);
}
const void* BufferedInputStream::peek_buffer(gsize& count) const
{
return g_buffered_input_stream_peek_buffer(const_cast<GBufferedInputStream*>(gobj()), &(count));
}
#ifdef GLIBMM_EXCEPTIONS_ENABLED
gssize BufferedInputStream::fill(gssize count, const Glib::RefPtr<Cancellable>& cancellable)
#else
gssize BufferedInputStream::fill(gssize count, const Glib::RefPtr<Cancellable>& cancellable, std::auto_ptr<Glib::Error>& error)
#endif //GLIBMM_EXCEPTIONS_ENABLED
{
GError* gerror = 0;
gssize retvalue = g_buffered_input_stream_fill(gobj(), count, const_cast<GCancellable*>(Glib::unwrap(cancellable)), &(gerror));
#ifdef GLIBMM_EXCEPTIONS_ENABLED
if(gerror)
::Glib::Error::throw_exception(gerror);
#else
if(gerror)
error = ::Glib::Error::throw_exception(gerror);
#endif //GLIBMM_EXCEPTIONS_ENABLED
return retvalue;
}
#ifdef GLIBMM_EXCEPTIONS_ENABLED
gssize BufferedInputStream::fill_finish(const Glib::RefPtr<AsyncResult>& result)
#else
gssize BufferedInputStream::fill_finish(const Glib::RefPtr<AsyncResult>& result, std::auto_ptr<Glib::Error>& error)
#endif //GLIBMM_EXCEPTIONS_ENABLED
{
GError* gerror = 0;
gssize retvalue = g_buffered_input_stream_fill_finish(gobj(), Glib::unwrap(result), &(gerror));
#ifdef GLIBMM_EXCEPTIONS_ENABLED
if(gerror)
::Glib::Error::throw_exception(gerror);
#else
if(gerror)
error = ::Glib::Error::throw_exception(gerror);
#endif //GLIBMM_EXCEPTIONS_ENABLED
return retvalue;
}
#ifdef GLIBMM_EXCEPTIONS_ENABLED
int BufferedInputStream::read_byte(const Glib::RefPtr<Cancellable>& cancellable)
#else
int BufferedInputStream::read_byte(const Glib::RefPtr<Cancellable>& cancellable, std::auto_ptr<Glib::Error>& error)
#endif //GLIBMM_EXCEPTIONS_ENABLED
{
GError* gerror = 0;
int retvalue = g_buffered_input_stream_read_byte(gobj(), const_cast<GCancellable*>(Glib::unwrap(cancellable)), &(gerror));
#ifdef GLIBMM_EXCEPTIONS_ENABLED
if(gerror)
::Glib::Error::throw_exception(gerror);
#else
if(gerror)
error = ::Glib::Error::throw_exception(gerror);
#endif //GLIBMM_EXCEPTIONS_ENABLED
return retvalue;
}
#ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
#endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
#ifdef GLIBMM_VFUNCS_ENABLED
#endif //GLIBMM_VFUNCS_ENABLED
} // namespace Gio

View File

@@ -0,0 +1,298 @@
// -*- c++ -*-
// Generated by gtkmmproc -- DO NOT MODIFY!
#ifndef _GIOMM_BUFFEREDINPUTSTREAM_H
#define _GIOMM_BUFFEREDINPUTSTREAM_H
#include <glibmm.h>
// -*- Mode: C++; indent-tabs-mode: nil; c-basic-offset: 2 -*-
/* Copyright (C) 2008 The gtkmm Development Team
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#include <giomm/filterinputstream.h>
#include <glibmm/object.h>
#ifndef DOXYGEN_SHOULD_SKIP_THIS
typedef struct _GBufferedInputStream GBufferedInputStream;
typedef struct _GBufferedInputStreamClass GBufferedInputStreamClass;
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
namespace Gio
{ class BufferedInputStream_Class; } // namespace Gio
namespace Gio
{
/** @defgroup Streams Stream Classes
*
*/
/** The buffered input stream implements FilterInputStream and provides for buffered reads.
* By default, BufferedInputStream's buffer size is set at 4 kilobytes, but you can specify
* this to the constructor.
*
* To get the size of a buffer within a buffered input stream, use get_buffer_size().
* To change the size of a buffered input stream's buffer, use set_buffer_size().
* Note that the buffer's size cannot be reduced below the size of the data within the buffer.
*
* @ingroup Streams
*
* @newin2p16
*/
class BufferedInputStream : public Gio::FilterInputStream
{
#ifndef DOXYGEN_SHOULD_SKIP_THIS
public:
typedef BufferedInputStream CppObjectType;
typedef BufferedInputStream_Class CppClassType;
typedef GBufferedInputStream BaseObjectType;
typedef GBufferedInputStreamClass BaseClassType;
private: friend class BufferedInputStream_Class;
static CppClassType bufferedinputstream_class_;
private:
// noncopyable
BufferedInputStream(const BufferedInputStream&);
BufferedInputStream& operator=(const BufferedInputStream&);
protected:
explicit BufferedInputStream(const Glib::ConstructParams& construct_params);
explicit BufferedInputStream(GBufferedInputStream* castitem);
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
public:
virtual ~BufferedInputStream();
#ifndef DOXYGEN_SHOULD_SKIP_THIS
static GType get_type() G_GNUC_CONST;
static GType get_base_type() G_GNUC_CONST;
#endif
///Provides access to the underlying C GObject.
GBufferedInputStream* gobj() { return reinterpret_cast<GBufferedInputStream*>(gobject_); }
///Provides access to the underlying C GObject.
const GBufferedInputStream* gobj() const { return reinterpret_cast<GBufferedInputStream*>(gobject_); }
///Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
GBufferedInputStream* gobj_copy();
private:
protected:
explicit BufferedInputStream(const Glib::RefPtr<InputStream>& base_stream);
explicit BufferedInputStream(const Glib::RefPtr<InputStream>& base_stream, gsize size);
public:
static Glib::RefPtr<BufferedInputStream> create(const Glib::RefPtr<InputStream>& base_stream);
static Glib::RefPtr<BufferedInputStream> create_sized(const Glib::RefPtr<InputStream>& base_stream, gsize size);
/** Gets the size of the input buffer.
* @return The current buffer size.
*/
gsize get_buffer_size() const;
/** Sets the size of the internal buffer of @a stream to @a size, or to the
* size of the contents of the buffer. The buffer can never be resized
* smaller than its current contents.
* @param size A #gsize.
*/
void set_buffer_size(gsize size);
/** Gets the size of the available data within the stream.
* @return Size of the available stream.
*/
gsize get_available() const;
/** Peeks in the buffer, copying data of size @a count into @a buffer,
* offset @a offset bytes.
* @param buffer A pointer to an allocated chunk of memory.
* @param offset A #gsize.
* @param count A #gsize.
* @return A #gsize of the number of bytes peeked, or %-1 on error.
*/
gsize peek(void* buffer, gsize offset, gsize count) const;
/** Returns: read-only buffer
* @param count A #gsize to get the number of bytes available in the buffer.
* @return Read-only buffer.
*/
const void* peek_buffer(gsize& count) const;
/** Tries to read @a count bytes from the stream into the buffer.
* Will block during this read.
*
* If @a count is zero, returns zero and does nothing. A value of @a count
* larger than MAXSSIZE will cause a Gio::Error to be thrown, with INVALID_ARGUMENT.
*
* On success, the number of bytes read into the buffer is returned.
* It is not an error if this is not the same as the requested size, as it
* can happen e.g. near the end of a file. Zero is returned on end of file
* (or if @a count is zero), but never otherwise.
*
* The operation can be cancelled by
* triggering the cancellable object from another thread. If the operation
* was cancelled, a Gio::Error will be thrown with CANCELLED. If an
* operation was partially finished when the operation was cancelled the
* partial result will be returned, without an error.
*
*
*
* For the asynchronous, non-blocking, version of this function, see
* g_buffered_input_stream_fill_async().
* @param count The number of bytes that will be read from the stream.
* @param cancellable Cancellable object.
* @return The number of bytes read into @a stream's buffer, up to @a count,
* or -1 on error.
*/
#ifdef GLIBMM_EXCEPTIONS_ENABLED
gssize fill(gssize count, const Glib::RefPtr<Cancellable>& cancellable);
#else
gssize fill(gssize count, const Glib::RefPtr<Cancellable>& cancellable, std::auto_ptr<Glib::Error>& error);
#endif //GLIBMM_EXCEPTIONS_ENABLED
/** non-cancellable version of fill()
*/
#ifdef GLIBMM_EXCEPTIONS_ENABLED
gssize fill(gssize count);
#else
gssize fill(gssize count, std::auto_ptr<Glib::Error>& error);
#endif //GLIBMM_EXCEPTIONS_ENABLED
/** Reads data into the stream's buffer asynchronously, up to @a count size.
* @a io_priority can be used to prioritize reads. For the synchronous version of
* this function, see fill().
*
* @param slot A AsyncReadyCallback.
* @param count The number of bytes to read.
* @param cancellable Cancellable object.
* @param io_priority the I/O priority of the request.
*/
void fill_async(const SlotAsyncReady& slot,
gssize count,
const Glib::RefPtr<Cancellable>& cancellable,
int io_priority = Glib::PRIORITY_DEFAULT);
/** Reads data into the stream's buffer asynchronously, up to @a count size.
* @a io_priority can be used to prioritize reads. For the synchronous version of
* this function, see fill().
*
* @param slot A AsyncReadyCallback.
* @param count The number of bytes to read.
* @param io_priority the I/O priority of the request.
*/
void fill_async(const SlotAsyncReady& slot,
gssize count,
int io_priority = Glib::PRIORITY_DEFAULT);
/** Finishes an asynchronous read.
* @param result A AsyncResult.
* @return A #gssize of the read stream, or %-1 on an error.
*/
#ifdef GLIBMM_EXCEPTIONS_ENABLED
gssize fill_finish(const Glib::RefPtr<AsyncResult>& result);
#else
gssize fill_finish(const Glib::RefPtr<AsyncResult>& result, std::auto_ptr<Glib::Error>& error);
#endif //GLIBMM_EXCEPTIONS_ENABLED
/** Tries to read a single byte from the stream or the buffer. Will block
* during this read.
*
* On success, the byte read from the stream is returned. On end of stream
* -1 is returned but it's not an exceptional error and @a error is not set.
*
* The operation can be cancelled by
* triggering the cancellable object from another thread. If the operation
* was cancelled, a Gio::Error will be thrown with CANCELLED. If an
* operation was partially finished when the operation was cancelled the
* partial result will be returned, without an error.
* @param cancellable Cancellable object.
* @return The byte read from the @a stream, or -1 on end of stream or error.
*/
#ifdef GLIBMM_EXCEPTIONS_ENABLED
int read_byte(const Glib::RefPtr<Cancellable>& cancellable);
#else
int read_byte(const Glib::RefPtr<Cancellable>& cancellable, std::auto_ptr<Glib::Error>& error);
#endif //GLIBMM_EXCEPTIONS_ENABLED
/** Non-cancellable version of read_byte.
*/
#ifdef GLIBMM_EXCEPTIONS_ENABLED
int read_byte();
#else
int read_byte(std::auto_ptr<Glib::Error>& error);
#endif //GLIBMM_EXCEPTIONS_ENABLED
protected:
//_WRAP_VFUNC(gssize fill(gssize count, const Glib::RefPtr<Cancellable>& cancellable, GError** error), "fill")
public:
public:
//C++ methods used to invoke GTK+ virtual functions:
#ifdef GLIBMM_VFUNCS_ENABLED
#endif //GLIBMM_VFUNCS_ENABLED
protected:
//GTK+ Virtual Functions (override these to change behaviour):
#ifdef GLIBMM_VFUNCS_ENABLED
#endif //GLIBMM_VFUNCS_ENABLED
//Default Signal Handlers::
#ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
#endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
};
} // namespace Gio
namespace Glib
{
/** A Glib::wrap() method for this object.
*
* @param object The C instance.
* @param take_copy False if the result should take ownership of the C instance. True if it should take a new copy or ref.
* @result A C++ instance that wraps this C instance.
*
* @relates Gio::BufferedInputStream
*/
Glib::RefPtr<Gio::BufferedInputStream> wrap(GBufferedInputStream* object, bool take_copy = false);
}
#endif /* _GIOMM_BUFFEREDINPUTSTREAM_H */

View File

@@ -0,0 +1,199 @@
// Generated by gtkmmproc -- DO NOT MODIFY!
#include <giomm/bufferedoutputstream.h>
#include <giomm/private/bufferedoutputstream_p.h>
// -*- Mode: C++; indent-tabs-mode: nil; c-basic-offset: 2 -*-
/* Copyright (C) 2008 The gtkmm Development Team
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#include <gio/gio.h>
#include "slot_async.h"
namespace Gio
{
Glib::RefPtr<BufferedOutputStream> BufferedOutputStream::create_sized(const Glib::RefPtr<OutputStream>& base_stream, gsize size)
{
return Glib::RefPtr<Gio::BufferedOutputStream>(new BufferedOutputStream(base_stream, size));
}
} // namespace Gio
namespace
{
} // anonymous namespace
namespace Glib
{
Glib::RefPtr<Gio::BufferedOutputStream> wrap(GBufferedOutputStream* object, bool take_copy)
{
return Glib::RefPtr<Gio::BufferedOutputStream>( dynamic_cast<Gio::BufferedOutputStream*> (Glib::wrap_auto ((GObject*)(object), take_copy)) );
//We use dynamic_cast<> in case of multiple inheritance.
}
} /* namespace Glib */
namespace Gio
{
/* The *_Class implementation: */
const Glib::Class& BufferedOutputStream_Class::init()
{
if(!gtype_) // create the GType if necessary
{
// Glib::Class has to know the class init function to clone custom types.
class_init_func_ = &BufferedOutputStream_Class::class_init_function;
// This is actually just optimized away, apparently with no harm.
// Make sure that the parent type has been created.
//CppClassParent::CppObjectType::get_type();
// Create the wrapper type, with the same class/instance size as the base type.
register_derived_type(g_buffered_output_stream_get_type());
// Add derived versions of interfaces, if the C type implements any interfaces:
}
return *this;
}
void BufferedOutputStream_Class::class_init_function(void* g_class, void* class_data)
{
BaseClassType *const klass = static_cast<BaseClassType*>(g_class);
CppClassParent::class_init_function(klass, class_data);
#ifdef GLIBMM_VFUNCS_ENABLED
#endif //GLIBMM_VFUNCS_ENABLED
#ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
#endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
}
#ifdef GLIBMM_VFUNCS_ENABLED
#endif //GLIBMM_VFUNCS_ENABLED
#ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
#endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
Glib::ObjectBase* BufferedOutputStream_Class::wrap_new(GObject* object)
{
return new BufferedOutputStream((GBufferedOutputStream*)object);
}
/* The implementation: */
GBufferedOutputStream* BufferedOutputStream::gobj_copy()
{
reference();
return gobj();
}
BufferedOutputStream::BufferedOutputStream(const Glib::ConstructParams& construct_params)
:
Gio::FilterOutputStream(construct_params)
{
}
BufferedOutputStream::BufferedOutputStream(GBufferedOutputStream* castitem)
:
Gio::FilterOutputStream((GFilterOutputStream*)(castitem))
{}
BufferedOutputStream::~BufferedOutputStream()
{}
BufferedOutputStream::CppClassType BufferedOutputStream::bufferedoutputstream_class_; // initialize static member
GType BufferedOutputStream::get_type()
{
return bufferedoutputstream_class_.init().get_type();
}
GType BufferedOutputStream::get_base_type()
{
return g_buffered_output_stream_get_type();
}
BufferedOutputStream::BufferedOutputStream(const Glib::RefPtr<OutputStream>& base_stream)
:
// Mark this class as non-derived to allow C++ vfuncs to be skipped.
Glib::ObjectBase(0),
Gio::FilterOutputStream(Glib::ConstructParams(bufferedoutputstream_class_.init(), "base_stream", const_cast<GOutputStream*>(Glib::unwrap(base_stream)), static_cast<char*>(0)))
{
}
BufferedOutputStream::BufferedOutputStream(const Glib::RefPtr<OutputStream>& base_stream, gsize size)
:
// Mark this class as non-derived to allow C++ vfuncs to be skipped.
Glib::ObjectBase(0),
Gio::FilterOutputStream(Glib::ConstructParams(bufferedoutputstream_class_.init(), "base_stream", const_cast<GOutputStream*>(Glib::unwrap(base_stream)), "size", size, static_cast<char*>(0)))
{
}
Glib::RefPtr<BufferedOutputStream> BufferedOutputStream::create(const Glib::RefPtr<OutputStream>& base_stream)
{
return Glib::RefPtr<BufferedOutputStream>( new BufferedOutputStream(base_stream) );
}
gsize BufferedOutputStream::get_buffer_size() const
{
return g_buffered_output_stream_get_buffer_size(const_cast<GBufferedOutputStream*>(gobj()));
}
void BufferedOutputStream::set_buffer_size(gsize size)
{
g_buffered_output_stream_set_buffer_size(gobj(), size);
}
void BufferedOutputStream::set_auto_grow(bool auto_grow)
{
g_buffered_output_stream_set_auto_grow(gobj(), static_cast<int>(auto_grow));
}
bool BufferedOutputStream::get_auto_grow() const
{
return g_buffered_output_stream_get_auto_grow(const_cast<GBufferedOutputStream*>(gobj()));
}
#ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
#endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
#ifdef GLIBMM_VFUNCS_ENABLED
#endif //GLIBMM_VFUNCS_ENABLED
} // namespace Gio

View File

@@ -0,0 +1,173 @@
// -*- c++ -*-
// Generated by gtkmmproc -- DO NOT MODIFY!
#ifndef _GIOMM_BUFFEREDOUTPUTSTREAM_H
#define _GIOMM_BUFFEREDOUTPUTSTREAM_H
#include <glibmm.h>
// -*- Mode: C++; indent-tabs-mode: nil; c-basic-offset: 2 -*-
/* Copyright (C) 2008 The gtkmm Development Team
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#include <giomm/filteroutputstream.h>
#include <glibmm/object.h>
#ifndef DOXYGEN_SHOULD_SKIP_THIS
typedef struct _GBufferedOutputStream GBufferedOutputStream;
typedef struct _GBufferedOutputStreamClass GBufferedOutputStreamClass;
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
namespace Gio
{ class BufferedOutputStream_Class; } // namespace Gio
namespace Gio
{
/** The buffered output stream implements FilterOutputStream and provides for buffered writes.
* By default, BufferedOutputStream's buffer size is set at 4 kilobytes, but you
* can specify this to the constructor.
*
* To get the size of a buffer within a buffered input stream, use get_buffer_size().
* To change the size of a buffered output stream's buffer, use set_buffer_size().
* Note that the buffer's size cannot be reduced below the size of the data within the buffer.
*
* @ingroup Streams
*
* @newin2p16
*/
class BufferedOutputStream : public Gio::FilterOutputStream
{
#ifndef DOXYGEN_SHOULD_SKIP_THIS
public:
typedef BufferedOutputStream CppObjectType;
typedef BufferedOutputStream_Class CppClassType;
typedef GBufferedOutputStream BaseObjectType;
typedef GBufferedOutputStreamClass BaseClassType;
private: friend class BufferedOutputStream_Class;
static CppClassType bufferedoutputstream_class_;
private:
// noncopyable
BufferedOutputStream(const BufferedOutputStream&);
BufferedOutputStream& operator=(const BufferedOutputStream&);
protected:
explicit BufferedOutputStream(const Glib::ConstructParams& construct_params);
explicit BufferedOutputStream(GBufferedOutputStream* castitem);
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
public:
virtual ~BufferedOutputStream();
#ifndef DOXYGEN_SHOULD_SKIP_THIS
static GType get_type() G_GNUC_CONST;
static GType get_base_type() G_GNUC_CONST;
#endif
///Provides access to the underlying C GObject.
GBufferedOutputStream* gobj() { return reinterpret_cast<GBufferedOutputStream*>(gobject_); }
///Provides access to the underlying C GObject.
const GBufferedOutputStream* gobj() const { return reinterpret_cast<GBufferedOutputStream*>(gobject_); }
///Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
GBufferedOutputStream* gobj_copy();
private:
protected:
explicit BufferedOutputStream(const Glib::RefPtr<OutputStream>& base_stream);
explicit BufferedOutputStream(const Glib::RefPtr<OutputStream>& base_stream, gsize size);
public:
static Glib::RefPtr<BufferedOutputStream> create(const Glib::RefPtr<OutputStream>& base_stream);
static Glib::RefPtr<BufferedOutputStream> create_sized(const Glib::RefPtr<OutputStream>& base_stream, gsize size);
/** Gets the size of the buffer in the @a stream.
* @return The current size of the buffer.
*/
gsize get_buffer_size() const;
/** Sets the size of the internal buffer to @a size.
* @param size A #gsize.
*/
void set_buffer_size(gsize size);
/** Sets whether or not the @a stream's buffer should automatically grow.
* If @a auto_grow is true, then each write will just make the buffer
* larger, and you must manually flush the buffer to actually write out
* the data to the underlying stream.
* @param auto_grow A <tt>bool</tt>.
*/
void set_auto_grow(bool auto_grow=true);
/** Checks if the buffer automatically grows as data is added.
* @return <tt>true</tt> if the @a stream's buffer automatically grows,
* <tt>false</tt> otherwise.
*/
bool get_auto_grow() const;
public:
public:
//C++ methods used to invoke GTK+ virtual functions:
#ifdef GLIBMM_VFUNCS_ENABLED
#endif //GLIBMM_VFUNCS_ENABLED
protected:
//GTK+ Virtual Functions (override these to change behaviour):
#ifdef GLIBMM_VFUNCS_ENABLED
#endif //GLIBMM_VFUNCS_ENABLED
//Default Signal Handlers::
#ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
#endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
};
} // namespace Gio
namespace Glib
{
/** A Glib::wrap() method for this object.
*
* @param object The C instance.
* @param take_copy False if the result should take ownership of the C instance. True if it should take a new copy or ref.
* @result A C++ instance that wraps this C instance.
*
* @relates Gio::BufferedOutputStream
*/
Glib::RefPtr<Gio::BufferedOutputStream> wrap(GBufferedOutputStream* object, bool take_copy = false);
}
#endif /* _GIOMM_BUFFEREDOUTPUTSTREAM_H */

View File

@@ -0,0 +1,271 @@
// Generated by gtkmmproc -- DO NOT MODIFY!
#include <giomm/cancellable.h>
#include <giomm/private/cancellable_p.h>
// -*- Mode: C++; indent-tabs-mode: nil; c-basic-offset: 2 -*-
/* Copyright (C) 2007 The gtkmm Development Team
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#include <gio/gio.h>
namespace Gio {
} // namespace Gio
namespace
{
static const Glib::SignalProxyInfo Cancellable_signal_cancelled_info =
{
"cancelled",
(GCallback) &Glib::SignalProxyNormal::slot0_void_callback,
(GCallback) &Glib::SignalProxyNormal::slot0_void_callback
};
} // anonymous namespace
namespace Glib
{
Glib::RefPtr<Gio::Cancellable> wrap(GCancellable* object, bool take_copy)
{
return Glib::RefPtr<Gio::Cancellable>( dynamic_cast<Gio::Cancellable*> (Glib::wrap_auto ((GObject*)(object), take_copy)) );
//We use dynamic_cast<> in case of multiple inheritance.
}
} /* namespace Glib */
namespace Gio
{
/* The *_Class implementation: */
const Glib::Class& Cancellable_Class::init()
{
if(!gtype_) // create the GType if necessary
{
// Glib::Class has to know the class init function to clone custom types.
class_init_func_ = &Cancellable_Class::class_init_function;
// This is actually just optimized away, apparently with no harm.
// Make sure that the parent type has been created.
//CppClassParent::CppObjectType::get_type();
// Create the wrapper type, with the same class/instance size as the base type.
register_derived_type(g_cancellable_get_type());
// Add derived versions of interfaces, if the C type implements any interfaces:
}
return *this;
}
void Cancellable_Class::class_init_function(void* g_class, void* class_data)
{
BaseClassType *const klass = static_cast<BaseClassType*>(g_class);
CppClassParent::class_init_function(klass, class_data);
#ifdef GLIBMM_VFUNCS_ENABLED
#endif //GLIBMM_VFUNCS_ENABLED
#ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
klass->cancelled = &cancelled_callback;
#endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
}
#ifdef GLIBMM_VFUNCS_ENABLED
#endif //GLIBMM_VFUNCS_ENABLED
#ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
void Cancellable_Class::cancelled_callback(GCancellable* self)
{
Glib::ObjectBase *const obj_base = static_cast<Glib::ObjectBase*>(
Glib::ObjectBase::_get_current_wrapper((GObject*)self));
// Non-gtkmmproc-generated custom classes implicitly call the default
// Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
// generated classes can use this optimisation, which avoids the unnecessary
// parameter conversions if there is no possibility of the virtual function
// being overridden:
if(obj_base && obj_base->is_derived_())
{
CppObjectType *const obj = dynamic_cast<CppObjectType* const>(obj_base);
if(obj) // This can be NULL during destruction.
{
#ifdef GLIBMM_EXCEPTIONS_ENABLED
try // Trap C++ exceptions which would normally be lost because this is a C callback.
{
#endif //GLIBMM_EXCEPTIONS_ENABLED
// Call the virtual member method, which derived classes might override.
obj->on_cancelled();
return;
#ifdef GLIBMM_EXCEPTIONS_ENABLED
}
catch(...)
{
Glib::exception_handlers_invoke();
}
#endif //GLIBMM_EXCEPTIONS_ENABLED
}
}
BaseClassType *const base = static_cast<BaseClassType*>(
g_type_class_peek_parent(G_OBJECT_GET_CLASS(self)) // Get the parent class of the object class (The original underlying C class).
);
// Call the original underlying C function:
if(base && base->cancelled)
(*base->cancelled)(self);
}
#endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
Glib::ObjectBase* Cancellable_Class::wrap_new(GObject* object)
{
return new Cancellable((GCancellable*)object);
}
/* The implementation: */
GCancellable* Cancellable::gobj_copy()
{
reference();
return gobj();
}
Cancellable::Cancellable(const Glib::ConstructParams& construct_params)
:
Glib::Object(construct_params)
{
}
Cancellable::Cancellable(GCancellable* castitem)
:
Glib::Object((GObject*)(castitem))
{}
Cancellable::~Cancellable()
{}
Cancellable::CppClassType Cancellable::cancellable_class_; // initialize static member
GType Cancellable::get_type()
{
return cancellable_class_.init().get_type();
}
GType Cancellable::get_base_type()
{
return g_cancellable_get_type();
}
Cancellable::Cancellable()
:
// Mark this class as non-derived to allow C++ vfuncs to be skipped.
Glib::ObjectBase(0),
Glib::Object(Glib::ConstructParams(cancellable_class_.init()))
{
}
Glib::RefPtr<Cancellable> Cancellable::create()
{
return Glib::RefPtr<Cancellable>( new Cancellable() );
}
bool Cancellable::is_cancelled() const
{
return g_cancellable_is_cancelled(const_cast<GCancellable*>(gobj()));
}
int Cancellable::get_fd() const
{
return g_cancellable_get_fd(const_cast<GCancellable*>(gobj()));
}
void Cancellable::cancel()
{
g_cancellable_cancel(gobj());
}
Glib::RefPtr<Cancellable> Cancellable::get_current()
{
Glib::RefPtr<Cancellable> retvalue = Glib::wrap(g_cancellable_get_current());
if(retvalue)
retvalue->reference(); //The function does not do a ref for us.
return retvalue;
}
void Cancellable::push_current()
{
g_cancellable_push_current(gobj());
}
void Cancellable::pop_current()
{
g_cancellable_pop_current(gobj());
}
void Cancellable::reset()
{
g_cancellable_reset(gobj());
}
Glib::SignalProxy0< void > Cancellable::signal_cancelled()
{
return Glib::SignalProxy0< void >(this, &Cancellable_signal_cancelled_info);
}
#ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
void Gio::Cancellable::on_cancelled()
{
BaseClassType *const base = static_cast<BaseClassType*>(
g_type_class_peek_parent(G_OBJECT_GET_CLASS(gobject_)) // Get the parent class of the object class (The original underlying C class).
);
if(base && base->cancelled)
(*base->cancelled)(gobj());
}
#endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
#ifdef GLIBMM_VFUNCS_ENABLED
#endif //GLIBMM_VFUNCS_ENABLED
} // namespace Gio

View File

@@ -0,0 +1,205 @@
// -*- c++ -*-
// Generated by gtkmmproc -- DO NOT MODIFY!
#ifndef _GIOMM_CANCELLABLE_H
#define _GIOMM_CANCELLABLE_H
#include <glibmm.h>
// -*- Mode: C++; indent-tabs-mode: nil; c-basic-offset: 2 -*-
/* Copyright (C) 2007 The gtkmm Development Team
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#include <glibmm/object.h>
#ifndef DOXYGEN_SHOULD_SKIP_THIS
typedef struct _GCancellable GCancellable;
typedef struct _GCancellableClass GCancellableClass;
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
namespace Gio
{ class Cancellable_Class; } // namespace Gio
namespace Gio
{
/** Allows actions to be cancelled.
* Cancellable is a thread-safe operation cancellation stack used throughout GIO to allow for cancellation of synchronous and asynchronous operations.
*
* @newin2p16
*/
class Cancellable : public Glib::Object
{
#ifndef DOXYGEN_SHOULD_SKIP_THIS
public:
typedef Cancellable CppObjectType;
typedef Cancellable_Class CppClassType;
typedef GCancellable BaseObjectType;
typedef GCancellableClass BaseClassType;
private: friend class Cancellable_Class;
static CppClassType cancellable_class_;
private:
// noncopyable
Cancellable(const Cancellable&);
Cancellable& operator=(const Cancellable&);
protected:
explicit Cancellable(const Glib::ConstructParams& construct_params);
explicit Cancellable(GCancellable* castitem);
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
public:
virtual ~Cancellable();
#ifndef DOXYGEN_SHOULD_SKIP_THIS
static GType get_type() G_GNUC_CONST;
static GType get_base_type() G_GNUC_CONST;
#endif
///Provides access to the underlying C GObject.
GCancellable* gobj() { return reinterpret_cast<GCancellable*>(gobject_); }
///Provides access to the underlying C GObject.
const GCancellable* gobj() const { return reinterpret_cast<GCancellable*>(gobject_); }
///Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
GCancellable* gobj_copy();
private:
protected:
Cancellable();
public:
static Glib::RefPtr<Cancellable> create();
/** Checks if a cancellable job has been cancelled.
* @return <tt>true</tt> if @a cancellable is cancelled,
* <tt>false</tt> if called with <tt>0</tt> or if item is not cancelled.
*/
bool is_cancelled() const;
//May return -1 if fds not supported, or on errors .
/** Gets the file descriptor for a cancellable job. This can be used to
* implement cancellable operations on Unix systems. The returned fd will
* turn readable when @a cancellable is cancelled.
* @return A valid file descriptor. %-1 if the file descriptor
* is not supported, or on errors.
*/
int get_fd() const;
//This is safe to call from another thread.
/** Will set @a cancellable to cancelled, and will emit the CANCELLED
* signal.
*
* This function is thread-safe. In other words, you can safely call it from
* another thread than the one running an operation that was passed
* the @a cancellable.
*/
void cancel();
/** Gets the top cancellable from the stack.
* @return A Cancellable from the top of the stack, or <tt>0</tt>
* if the stack is empty.
*/
static Glib::RefPtr<Cancellable> get_current();
/** Pushes @a cancellable onto the cancellable stack. The current
* cancllable can then be recieved using g_cancellable_get_current().
*
* This is useful when implementing cancellable operations in
* code that does not allow you to pass down the cancellable object.
*
* This is typically called automatically by e.g. File operations,
* so you rarely have to call this yourself.
*/
void push_current();
/** Pops @a cancellable off the cancellable stack (verifying that @a cancellable
* is on the top of the stack).
*/
void pop_current();
/** Resets @a cancellable to its uncancelled state.
*/
void reset();
/**
* @par Prototype:
* <tt>void on_my_%cancelled()</tt>
*/
Glib::SignalProxy0< void > signal_cancelled();
public:
public:
//C++ methods used to invoke GTK+ virtual functions:
#ifdef GLIBMM_VFUNCS_ENABLED
#endif //GLIBMM_VFUNCS_ENABLED
protected:
//GTK+ Virtual Functions (override these to change behaviour):
#ifdef GLIBMM_VFUNCS_ENABLED
#endif //GLIBMM_VFUNCS_ENABLED
//Default Signal Handlers::
#ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
virtual void on_cancelled();
#endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
};
} // namespace Gio
namespace Glib
{
/** A Glib::wrap() method for this object.
*
* @param object The C instance.
* @param take_copy False if the result should take ownership of the C instance. True if it should take a new copy or ref.
* @result A C++ instance that wraps this C instance.
*
* @relates Gio::Cancellable
*/
Glib::RefPtr<Gio::Cancellable> wrap(GCancellable* object, bool take_copy = false);
}
#endif /* _GIOMM_CANCELLABLE_H */

View File

@@ -0,0 +1,105 @@
// -*- Mode: C++; indent-tabs-mode: nil; c-basic-offset: 2 -*-
/* Copyright (C) 2008 The gtkmm Development Team
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#include <giomm/contenttype.h>
#include <gio/gio.h>
namespace Gio
{
bool content_type_equals(const Glib::ustring& type1, const Glib::ustring& type2)
{
return g_content_type_equals(type1.c_str(), type2.c_str());
}
bool content_type_is_a(const Glib::ustring& type, const Glib::ustring& supertype)
{
return g_content_type_is_a(type.c_str(), supertype.c_str());
}
bool content_type_is_unknown(const Glib::ustring& type)
{
return g_content_type_is_unknown(type.c_str());
}
Glib::ustring content_type_get_description(const Glib::ustring& type)
{
return Glib::convert_return_gchar_ptr_to_ustring(g_content_type_get_description(type.c_str()));
}
Glib::ustring content_type_get_mime_type(const Glib::ustring& type)
{
return Glib::convert_return_gchar_ptr_to_ustring(g_content_type_get_mime_type(type.c_str()));
}
Glib::RefPtr<Gio::Icon> content_type_get_icon(const Glib::ustring& type)
{
//TODO: Does g_content_type_get_icon() return a reference?
//It currently has no implementation so it's hard to know. murrayc.
return Glib::wrap(g_content_type_get_icon(type.c_str()));
}
bool content_type_can_be_executable(const Glib::ustring& type)
{
return g_content_type_can_be_executable(type.c_str());
}
Glib::ustring content_type_guess(const std::string& filename,
const std::basic_string<guchar>& data, bool& result_uncertain)
{
gboolean c_result_uncertain = FALSE;
gchar* cresult = g_content_type_guess(filename.c_str(), data.c_str(),
data.size(), &c_result_uncertain);
result_uncertain = c_result_uncertain;
return Glib::convert_return_gchar_ptr_to_ustring(cresult);
}
Glib::ustring content_type_guess(const std::string& filename,
const guchar* data, gsize data_size, bool& result_uncertain)
{
gboolean c_result_uncertain = FALSE;
gchar* cresult = g_content_type_guess(filename.c_str(), data,
data_size, &c_result_uncertain);
result_uncertain = c_result_uncertain;
return Glib::convert_return_gchar_ptr_to_ustring(cresult);
}
Glib::ustring content_type_guess(const std::string& filename,
const std::string& data, bool& result_uncertain)
{
gboolean c_result_uncertain = FALSE;
gchar* cresult = g_content_type_guess(filename.c_str(), (const guchar*)data.c_str(),
data.size(), &c_result_uncertain);
result_uncertain = c_result_uncertain;
return Glib::convert_return_gchar_ptr_to_ustring(cresult);
}
Glib::StringArrayHandle content_type_guess_for_tree(const Glib::RefPtr<const File>& root)
{
return Glib::StringArrayHandle(g_content_type_guess_for_tree(const_cast<GFile*>(root->gobj())),
Glib::OWNERSHIP_DEEP);
}
Glib::ListHandle<Glib::ustring> content_types_get_registered()
{
return Glib::ListHandle<Glib::ustring>(g_content_types_get_registered(),
Glib::OWNERSHIP_DEEP);
}
} // namespace Gio

View File

@@ -0,0 +1,156 @@
// -*- Mode: C++; indent-tabs-mode: nil; c-basic-offset: 2 -*-
/* Copyright (C) 2008 The gtkmm Development Team
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#ifndef _GIOMM_CONTENTTYPE_H
#define _GIOMM_CONTENTTYPE_H
#include <glibmm/ustring.h>
#include <glibmm/listhandle.h>
#include <giomm/icon.h>
#include <giomm/file.h>
#include <string>
namespace Gio
{
/**
* Compares two content types for equality.
*
* @param type1 A content type string.
* @param type2 A content type string.
*
* @return true if the two strings are identical or equivalent, false otherwise.
*/
bool content_type_equals(const Glib::ustring& type1,
const Glib::ustring& type2);
/**
* Determines if @a type is a subset of @a supertype.
*
* @param type A content type string.
* @param supertype A string.
*
* @return true if @a type is a kind of @a supertype, false otherwise.
*/
bool content_type_is_a(const Glib::ustring& type,
const Glib::ustring& supertype);
/**
* Checks if the content type is the generic "unknown" type.
* On unix this is the "application/octet-stream" mimetype,
* while on win32 it is "*".
*
* @param type A content type string.
*
* @return true if the type is the unknown type.
*/
bool content_type_is_unknown(const Glib::ustring& type);
/**
* Gets the human readable description of the content type.
*
* @param type A content type string.
*
* @return a short description of the content type @a type.
*/
Glib::ustring content_type_get_description(const Glib::ustring& type);
/**
* Gets the mime-type for the content type. If one is registered
*
* @param type A content type string.
*
* @return the registered mime-type for the given @a type, or NULL if unknown.
*/
Glib::ustring content_type_get_mime_type(const Glib::ustring& type);
/**
* @param type A content type string.
*
* Gets the icon for a content type.
*
* @return Icon corresponding to the content type.
*/
Glib::RefPtr<Icon> content_type_get_icon(const Glib::ustring& type);
/**
* Checks if a content type can be executable. Note that for instance
* things like text files can be executables (i.e. scripts and batch files).
*
* @param type a content type string.
*
* @return true if the file type corresponds to a type that can be executable,
* false otherwise.
*/
bool content_type_can_be_executable(const Glib::ustring& type);
/**
* Guesses the content type based on example data. If the function is uncertain,
* @a result_uncertain will be set to true
*
* @param filename a string.
* @param data A stream of data.
* @param data_size The size of @a data.
* @param result_uncertain A flag indicating the certainty of the result.
* @return A string indicating a guessed content type for the
* given data.
*/
Glib::ustring content_type_guess(const std::string& filename,
const guchar* data, gsize data_size,
bool& result_uncertain);
/**
* Guesses the content type based on example data. If the function is uncertain,
* @a result_uncertain will be set to true
*
* @param filename a string.
* @param data A stream of data.
* @param result_uncertain A flag indicating the certainty of the result.
* @return A string indicating a guessed content type for the
* given data.
*/
Glib::ustring content_type_guess(const std::string& filename,
const std::string& data,
bool& result_uncertain);
/** Tries to guess the type of the tree with root @a root, by
* looking at the files it contains. The result is a list
* of content types, with the best guess coming first.
*
* The types returned all have the form x-content/foo, e.g.
* x-content/audio-cdda (for audio CDs) or x-content/image-dcf
* (for a camera memory card). See the <ulink url="http://www.freedesktop.org/wiki/Specifications/shared-mime-info-spec">shared-mime-info</ulink>
* specification for more on x-content types.
*
* @param root The root of the tree to guess a type for.
* @return List of zero or more content types.
*
* @newin2p18
*/
Glib::StringArrayHandle content_type_guess_for_tree(const Glib::RefPtr<const File>& root);
/**
* Gets a list of strings containing all the registered content types
* known to the system.
*
* @return List of the registered content types.
*/
Glib::ListHandle<Glib::ustring> content_types_get_registered();
} // namespace Gio
#endif // _GIOMM_CONTENTTYPE_H

View File

@@ -0,0 +1,571 @@
// Generated by gtkmmproc -- DO NOT MODIFY!
#include <giomm/datainputstream.h>
#include <giomm/private/datainputstream_p.h>
// -*- Mode: C++; indent-tabs-mode: nil; c-basic-offset: 2 -*-
/* Copyright (C) 2007 The gtkmm Development Team
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#include <gio/gio.h>
#include "slot_async.h"
namespace Gio
{
#ifdef GLIBMM_EXCEPTIONS_ENABLED
guchar DataInputStream::read_byte()
#else
guchar DataInputStream::read_byte(std::auto_ptr<Glib::Error>& error)
#endif //GLIBMM_EXCEPTIONS_ENABLED
{
GError* gerror = 0;
guchar retvalue = g_data_input_stream_read_byte(gobj(), NULL, &(gerror));
#ifdef GLIBMM_EXCEPTIONS_ENABLED
if(gerror)
::Glib::Error::throw_exception(gerror);
#else
if(gerror)
error = ::Glib::Error::throw_exception(gerror);
#endif //GLIBMM_EXCEPTIONS_ENABLED
return retvalue;
}
#ifdef GLIBMM_EXCEPTIONS_ENABLED
gint16 DataInputStream::read_int16()
#else
gint16 DataInputStream::read_int16(std::auto_ptr<Glib::Error>& error)
#endif //GLIBMM_EXCEPTIONS_ENABLED
{
GError* gerror = 0;
gint16 retvalue = g_data_input_stream_read_int16(gobj(), NULL, &(gerror));
#ifdef GLIBMM_EXCEPTIONS_ENABLED
if(gerror)
::Glib::Error::throw_exception(gerror);
#else
if(gerror)
error = ::Glib::Error::throw_exception(gerror);
#endif //GLIBMM_EXCEPTIONS_ENABLED
return retvalue;
}
#ifdef GLIBMM_EXCEPTIONS_ENABLED
guint16 DataInputStream::read_uint16()
#else
guint16 DataInputStream::read_uint16(std::auto_ptr<Glib::Error>& error)
#endif //GLIBMM_EXCEPTIONS_ENABLED
{
GError* gerror = 0;
guint16 retvalue = g_data_input_stream_read_uint16(gobj(), NULL, &(gerror));
#ifdef GLIBMM_EXCEPTIONS_ENABLED
if(gerror)
::Glib::Error::throw_exception(gerror);
#else
if(gerror)
error = ::Glib::Error::throw_exception(gerror);
#endif //GLIBMM_EXCEPTIONS_ENABLED
return retvalue;
}
#ifdef GLIBMM_EXCEPTIONS_ENABLED
gint32 DataInputStream::read_int32()
#else
gint32 DataInputStream::read_int32(std::auto_ptr<Glib::Error>& error)
#endif //GLIBMM_EXCEPTIONS_ENABLED
{
GError* gerror = 0;
gint32 retvalue = g_data_input_stream_read_int32(gobj(), NULL, &(gerror));
#ifdef GLIBMM_EXCEPTIONS_ENABLED
if(gerror)
::Glib::Error::throw_exception(gerror);
#else
if(gerror)
error = ::Glib::Error::throw_exception(gerror);
#endif //GLIBMM_EXCEPTIONS_ENABLED
return retvalue;
}
#ifdef GLIBMM_EXCEPTIONS_ENABLED
guint32 DataInputStream::read_uint32()
#else
guint32 DataInputStream::read_uint32(std::auto_ptr<Glib::Error>& error)
#endif //GLIBMM_EXCEPTIONS_ENABLED
{
GError* gerror = 0;
guint32 retvalue = g_data_input_stream_read_uint32(gobj(), NULL, &(gerror));
#ifdef GLIBMM_EXCEPTIONS_ENABLED
if(gerror)
::Glib::Error::throw_exception(gerror);
#else
if(gerror)
error = ::Glib::Error::throw_exception(gerror);
#endif //GLIBMM_EXCEPTIONS_ENABLED
return retvalue;
}
#ifdef GLIBMM_EXCEPTIONS_ENABLED
gint64 DataInputStream::read_int64()
#else
gint64 DataInputStream::read_int64(std::auto_ptr<Glib::Error>& error)
#endif //GLIBMM_EXCEPTIONS_ENABLED
{
GError* gerror = 0;
gint64 retvalue = g_data_input_stream_read_int64(gobj(), NULL, &(gerror));
#ifdef GLIBMM_EXCEPTIONS_ENABLED
if(gerror)
::Glib::Error::throw_exception(gerror);
#else
if(gerror)
error = ::Glib::Error::throw_exception(gerror);
#endif //GLIBMM_EXCEPTIONS_ENABLED
return retvalue;
}
#ifdef GLIBMM_EXCEPTIONS_ENABLED
guint64 DataInputStream::read_uint64()
#else
guint64 DataInputStream::read_uint64(std::auto_ptr<Glib::Error>& error)
#endif //GLIBMM_EXCEPTIONS_ENABLED
{
GError* gerror = 0;
guint64 retvalue = g_data_input_stream_read_uint64(gobj(), NULL, &(gerror));
#ifdef GLIBMM_EXCEPTIONS_ENABLED
if(gerror)
::Glib::Error::throw_exception(gerror);
#else
if(gerror)
error = ::Glib::Error::throw_exception(gerror);
#endif //GLIBMM_EXCEPTIONS_ENABLED
return retvalue;
}
#ifdef GLIBMM_EXCEPTIONS_ENABLED
bool DataInputStream::read_line(std::string& line, const Glib::RefPtr<Cancellable>& cancellable)
#else
bool DataInputStream::read_line(std::string& line, const Glib::RefPtr<Cancellable>& cancellable, std::auto_ptr<Glib::Error>& error)
#endif //GLIBMM_EXCEPTIONS_ENABLED
{
GError* gerror = 0;
char* c_line = g_data_input_stream_read_line(gobj(),
NULL, // pass NULL since we can easily determine the length from the returned std::string
cancellable->gobj(),
&gerror);
#ifdef GLIBMM_EXCEPTIONS_ENABLED
if(gerror)
::Glib::Error::throw_exception(gerror);
#else
if(gerror)
error = ::Glib::Error::throw_exception(gerror);
#endif //GLIBMM_EXCEPTIONS_ENABLED
if (c_line) {
line = c_line;
g_free (c_line);
return true;
}
// end of stream reached, return failure status
return false;
}
#ifdef GLIBMM_EXCEPTIONS_ENABLED
bool DataInputStream::read_line(std::string& line)
#else
bool DataInputStream::read_line(std::string& line, std::auto_ptr<Glib::Error>& error)
#endif //GLIBMM_EXCEPTIONS_ENABLED
{
GError* gerror = 0;
char* c_line = g_data_input_stream_read_line(gobj(),
NULL, // pass NULL since we can easily determine the length from the returned std::string
NULL,
&gerror);
#ifdef GLIBMM_EXCEPTIONS_ENABLED
if(gerror)
::Glib::Error::throw_exception(gerror);
#else
if(gerror)
error = ::Glib::Error::throw_exception(gerror);
#endif //GLIBMM_EXCEPTIONS_ENABLED
if (c_line) {
line = c_line;
g_free(c_line);
return true;
}
// end of stream reached, return failure status
return false;
}
#ifdef GLIBMM_EXCEPTIONS_ENABLED
bool DataInputStream::read_until(std::string& data, const std::string& stop_chars, const Glib::RefPtr<Cancellable>& cancellable)
#else
bool DataInputStream::read_until(std::string& data, const std::string& stop_chars, const Glib::RefPtr<Cancellable>& cancellable, std::auto_ptr<Glib::Error>& error)
#endif //GLIBMM_EXCEPTIONS_ENABLED
{
GError* gerror = 0;
char* c_str = g_data_input_stream_read_until(gobj(),
stop_chars.c_str(),
NULL, // pass NULL since we can easily determine the length from the returned std::string
cancellable->gobj(),
&gerror);
#ifdef GLIBMM_EXCEPTIONS_ENABLED
if(gerror)
::Glib::Error::throw_exception(gerror);
#else
if(gerror)
error = ::Glib::Error::throw_exception(gerror);
#endif //GLIBMM_EXCEPTIONS_ENABLED
if (c_str) {
data = c_str;
g_free (c_str);
return true;
}
// end of stream reached, return failure status
return false;
}
/** non-cancellable version of read_until()
*/
#ifdef GLIBMM_EXCEPTIONS_ENABLED
bool DataInputStream::read_until(std::string& data, const std::string& stop_chars)
#else
bool DataInputStream::read_until(std::string& data, const std::string& stop_chars, std::auto_ptr<Glib::Error>& error)
#endif //GLIBMM_EXCEPTIONS_ENABLED
{
GError* gerror = 0;
char* c_str = g_data_input_stream_read_until(gobj(),
stop_chars.c_str(),
NULL, // pass NULL since we can easily determine the length from the returned std::string
NULL,
&gerror);
#ifdef GLIBMM_EXCEPTIONS_ENABLED
if(gerror)
::Glib::Error::throw_exception(gerror);
#else
if(gerror)
error = ::Glib::Error::throw_exception(gerror);
#endif //GLIBMM_EXCEPTIONS_ENABLED
if (c_str) {
data = c_str;
g_free (c_str);
return true;
}
// end of stream reached, return failure status
return false;
}
} // namespace Gio
namespace
{
} // anonymous namespace
namespace Glib
{
Glib::RefPtr<Gio::DataInputStream> wrap(GDataInputStream* object, bool take_copy)
{
return Glib::RefPtr<Gio::DataInputStream>( dynamic_cast<Gio::DataInputStream*> (Glib::wrap_auto ((GObject*)(object), take_copy)) );
//We use dynamic_cast<> in case of multiple inheritance.
}
} /* namespace Glib */
namespace Gio
{
/* The *_Class implementation: */
const Glib::Class& DataInputStream_Class::init()
{
if(!gtype_) // create the GType if necessary
{
// Glib::Class has to know the class init function to clone custom types.
class_init_func_ = &DataInputStream_Class::class_init_function;
// This is actually just optimized away, apparently with no harm.
// Make sure that the parent type has been created.
//CppClassParent::CppObjectType::get_type();
// Create the wrapper type, with the same class/instance size as the base type.
register_derived_type(g_data_input_stream_get_type());
// Add derived versions of interfaces, if the C type implements any interfaces:
}
return *this;
}
void DataInputStream_Class::class_init_function(void* g_class, void* class_data)
{
BaseClassType *const klass = static_cast<BaseClassType*>(g_class);
CppClassParent::class_init_function(klass, class_data);
#ifdef GLIBMM_VFUNCS_ENABLED
#endif //GLIBMM_VFUNCS_ENABLED
#ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
#endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
}
#ifdef GLIBMM_VFUNCS_ENABLED
#endif //GLIBMM_VFUNCS_ENABLED
#ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
#endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
Glib::ObjectBase* DataInputStream_Class::wrap_new(GObject* object)
{
return new DataInputStream((GDataInputStream*)object);
}
/* The implementation: */
GDataInputStream* DataInputStream::gobj_copy()
{
reference();
return gobj();
}
DataInputStream::DataInputStream(const Glib::ConstructParams& construct_params)
:
Gio::BufferedInputStream(construct_params)
{
}
DataInputStream::DataInputStream(GDataInputStream* castitem)
:
Gio::BufferedInputStream((GBufferedInputStream*)(castitem))
{}
DataInputStream::~DataInputStream()
{}
DataInputStream::CppClassType DataInputStream::datainputstream_class_; // initialize static member
GType DataInputStream::get_type()
{
return datainputstream_class_.init().get_type();
}
GType DataInputStream::get_base_type()
{
return g_data_input_stream_get_type();
}
DataInputStream::DataInputStream(const Glib::RefPtr<InputStream>& base_stream)
:
// Mark this class as non-derived to allow C++ vfuncs to be skipped.
Glib::ObjectBase(0),
Gio::BufferedInputStream(Glib::ConstructParams(datainputstream_class_.init(), "base_stream", const_cast<GInputStream*>(Glib::unwrap(base_stream)), static_cast<char*>(0)))
{
}
Glib::RefPtr<DataInputStream> DataInputStream::create(const Glib::RefPtr<InputStream>& base_stream)
{
return Glib::RefPtr<DataInputStream>( new DataInputStream(base_stream) );
}
void DataInputStream::set_byte_order(DataStreamByteOrder order)
{
g_data_input_stream_set_byte_order(gobj(), ((GDataStreamByteOrder)(order)));
}
DataStreamByteOrder DataInputStream::get_byte_order() const
{
return ((DataStreamByteOrder)(g_data_input_stream_get_byte_order(const_cast<GDataInputStream*>(gobj()))));
}
void DataInputStream::set_newline_type(DataStreamNewlineType type)
{
g_data_input_stream_set_newline_type(gobj(), ((GDataStreamNewlineType)(type)));
}
DataStreamNewlineType DataInputStream::get_newline_type() const
{
return ((DataStreamNewlineType)(g_data_input_stream_get_newline_type(const_cast<GDataInputStream*>(gobj()))));
}
#ifdef GLIBMM_EXCEPTIONS_ENABLED
guchar DataInputStream::read_byte(const Glib::RefPtr<Cancellable>& cancellable)
#else
guchar DataInputStream::read_byte(const Glib::RefPtr<Cancellable>& cancellable, std::auto_ptr<Glib::Error>& error)
#endif //GLIBMM_EXCEPTIONS_ENABLED
{
GError* gerror = 0;
guchar retvalue = g_data_input_stream_read_byte(gobj(), const_cast<GCancellable*>(Glib::unwrap(cancellable)), &(gerror));
#ifdef GLIBMM_EXCEPTIONS_ENABLED
if(gerror)
::Glib::Error::throw_exception(gerror);
#else
if(gerror)
error = ::Glib::Error::throw_exception(gerror);
#endif //GLIBMM_EXCEPTIONS_ENABLED
return retvalue;
}
#ifdef GLIBMM_EXCEPTIONS_ENABLED
gint16 DataInputStream::read_int16(const Glib::RefPtr<Cancellable>& cancellable)
#else
gint16 DataInputStream::read_int16(const Glib::RefPtr<Cancellable>& cancellable, std::auto_ptr<Glib::Error>& error)
#endif //GLIBMM_EXCEPTIONS_ENABLED
{
GError* gerror = 0;
gint16 retvalue = g_data_input_stream_read_int16(gobj(), const_cast<GCancellable*>(Glib::unwrap(cancellable)), &(gerror));
#ifdef GLIBMM_EXCEPTIONS_ENABLED
if(gerror)
::Glib::Error::throw_exception(gerror);
#else
if(gerror)
error = ::Glib::Error::throw_exception(gerror);
#endif //GLIBMM_EXCEPTIONS_ENABLED
return retvalue;
}
#ifdef GLIBMM_EXCEPTIONS_ENABLED
guint16 DataInputStream::read_uint16(const Glib::RefPtr<Cancellable>& cancellable)
#else
guint16 DataInputStream::read_uint16(const Glib::RefPtr<Cancellable>& cancellable, std::auto_ptr<Glib::Error>& error)
#endif //GLIBMM_EXCEPTIONS_ENABLED
{
GError* gerror = 0;
guint16 retvalue = g_data_input_stream_read_uint16(gobj(), const_cast<GCancellable*>(Glib::unwrap(cancellable)), &(gerror));
#ifdef GLIBMM_EXCEPTIONS_ENABLED
if(gerror)
::Glib::Error::throw_exception(gerror);
#else
if(gerror)
error = ::Glib::Error::throw_exception(gerror);
#endif //GLIBMM_EXCEPTIONS_ENABLED
return retvalue;
}
#ifdef GLIBMM_EXCEPTIONS_ENABLED
gint32 DataInputStream::read_int32(const Glib::RefPtr<Cancellable>& cancellable)
#else
gint32 DataInputStream::read_int32(const Glib::RefPtr<Cancellable>& cancellable, std::auto_ptr<Glib::Error>& error)
#endif //GLIBMM_EXCEPTIONS_ENABLED
{
GError* gerror = 0;
gint32 retvalue = g_data_input_stream_read_int32(gobj(), const_cast<GCancellable*>(Glib::unwrap(cancellable)), &(gerror));
#ifdef GLIBMM_EXCEPTIONS_ENABLED
if(gerror)
::Glib::Error::throw_exception(gerror);
#else
if(gerror)
error = ::Glib::Error::throw_exception(gerror);
#endif //GLIBMM_EXCEPTIONS_ENABLED
return retvalue;
}
#ifdef GLIBMM_EXCEPTIONS_ENABLED
guint32 DataInputStream::read_uint32(const Glib::RefPtr<Cancellable>& cancellable)
#else
guint32 DataInputStream::read_uint32(const Glib::RefPtr<Cancellable>& cancellable, std::auto_ptr<Glib::Error>& error)
#endif //GLIBMM_EXCEPTIONS_ENABLED
{
GError* gerror = 0;
guint32 retvalue = g_data_input_stream_read_uint32(gobj(), const_cast<GCancellable*>(Glib::unwrap(cancellable)), &(gerror));
#ifdef GLIBMM_EXCEPTIONS_ENABLED
if(gerror)
::Glib::Error::throw_exception(gerror);
#else
if(gerror)
error = ::Glib::Error::throw_exception(gerror);
#endif //GLIBMM_EXCEPTIONS_ENABLED
return retvalue;
}
#ifdef GLIBMM_EXCEPTIONS_ENABLED
gint64 DataInputStream::read_int64(const Glib::RefPtr<Cancellable>& cancellable)
#else
gint64 DataInputStream::read_int64(const Glib::RefPtr<Cancellable>& cancellable, std::auto_ptr<Glib::Error>& error)
#endif //GLIBMM_EXCEPTIONS_ENABLED
{
GError* gerror = 0;
gint64 retvalue = g_data_input_stream_read_int64(gobj(), const_cast<GCancellable*>(Glib::unwrap(cancellable)), &(gerror));
#ifdef GLIBMM_EXCEPTIONS_ENABLED
if(gerror)
::Glib::Error::throw_exception(gerror);
#else
if(gerror)
error = ::Glib::Error::throw_exception(gerror);
#endif //GLIBMM_EXCEPTIONS_ENABLED
return retvalue;
}
#ifdef GLIBMM_EXCEPTIONS_ENABLED
guint64 DataInputStream::read_uint64(const Glib::RefPtr<Cancellable>& cancellable)
#else
guint64 DataInputStream::read_uint64(const Glib::RefPtr<Cancellable>& cancellable, std::auto_ptr<Glib::Error>& error)
#endif //GLIBMM_EXCEPTIONS_ENABLED
{
GError* gerror = 0;
guint64 retvalue = g_data_input_stream_read_uint64(gobj(), const_cast<GCancellable*>(Glib::unwrap(cancellable)), &(gerror));
#ifdef GLIBMM_EXCEPTIONS_ENABLED
if(gerror)
::Glib::Error::throw_exception(gerror);
#else
if(gerror)
error = ::Glib::Error::throw_exception(gerror);
#endif //GLIBMM_EXCEPTIONS_ENABLED
return retvalue;
}
#ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
#endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
#ifdef GLIBMM_VFUNCS_ENABLED
#endif //GLIBMM_VFUNCS_ENABLED
} // namespace Gio

View File

@@ -0,0 +1,382 @@
// -*- c++ -*-
// Generated by gtkmmproc -- DO NOT MODIFY!
#ifndef _GIOMM_DATAINPUTSTREAM_H
#define _GIOMM_DATAINPUTSTREAM_H
#include <glibmm.h>
// -*- Mode: C++; indent-tabs-mode: nil; c-basic-offset: 2 -*-
/* Copyright (C) 2007 The gtkmm Development Team
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#include <giomm/bufferedinputstream.h>
#include <giomm/enums.h>
#ifndef DOXYGEN_SHOULD_SKIP_THIS
typedef struct _GDataInputStream GDataInputStream;
typedef struct _GDataInputStreamClass GDataInputStreamClass;
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
namespace Gio
{ class DataInputStream_Class; } // namespace Gio
namespace Gio
{
/**
* An implementation of BufferedInputStream that allows for high-level data
* manipulation of arbitrary data (including binary operations).
*
* @ingroup Streams
*
* @newin2p16
*/
class DataInputStream : public Gio::BufferedInputStream
{
#ifndef DOXYGEN_SHOULD_SKIP_THIS
public:
typedef DataInputStream CppObjectType;
typedef DataInputStream_Class CppClassType;
typedef GDataInputStream BaseObjectType;
typedef GDataInputStreamClass BaseClassType;
private: friend class DataInputStream_Class;
static CppClassType datainputstream_class_;
private:
// noncopyable
DataInputStream(const DataInputStream&);
DataInputStream& operator=(const DataInputStream&);
protected:
explicit DataInputStream(const Glib::ConstructParams& construct_params);
explicit DataInputStream(GDataInputStream* castitem);
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
public:
virtual ~DataInputStream();
#ifndef DOXYGEN_SHOULD_SKIP_THIS
static GType get_type() G_GNUC_CONST;
static GType get_base_type() G_GNUC_CONST;
#endif
///Provides access to the underlying C GObject.
GDataInputStream* gobj() { return reinterpret_cast<GDataInputStream*>(gobject_); }
///Provides access to the underlying C GObject.
const GDataInputStream* gobj() const { return reinterpret_cast<GDataInputStream*>(gobject_); }
///Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
GDataInputStream* gobj_copy();
private:
protected:
explicit DataInputStream(const Glib::RefPtr<InputStream>& base_stream);
public:
static Glib::RefPtr<DataInputStream> create(const Glib::RefPtr<InputStream>& base_stream);
/** This function sets the byte order for the given @a stream. All subsequent
* reads from the @a stream will be read in the given @a order.
* @param order A DataStreamByteOrder to set.
*/
void set_byte_order(DataStreamByteOrder order);
/** Gets the byte order for the data input stream.
* @return The @a stream's current DataStreamByteOrder.
*/
DataStreamByteOrder get_byte_order() const;
/** Sets the newline type for the @a stream.
*
* Note that using G_DATA_STREAM_NEWLINE_TYPE_ANY is slightly unsafe. If a read
* chunk ends in "CR" we must read an additional byte to know if this is "CR" or
* "CR LF", and this might block if there is no more data availible.
* @param type The type of new line return as DataStreamNewlineType.
*/
void set_newline_type(DataStreamNewlineType type);
/** Gets the current newline type for the @a stream.
* @return DataStreamNewlineType for the given @a stream.
*/
DataStreamNewlineType get_newline_type() const;
/** Reads an unsigned 8-bit/1-byte value from @a stream.
* @param cancellable Optional Cancellable object, <tt>0</tt> to ignore.
* @return An unsigned 8-bit/1-byte value read from the @a stream or %0
* if an error occurred.
*/
#ifdef GLIBMM_EXCEPTIONS_ENABLED
guchar read_byte(const Glib::RefPtr<Cancellable>& cancellable);
#else
guchar read_byte(const Glib::RefPtr<Cancellable>& cancellable, std::auto_ptr<Glib::Error>& error);
#endif //GLIBMM_EXCEPTIONS_ENABLED
/** non-cancellable version of read_byte()
*/
#ifdef GLIBMM_EXCEPTIONS_ENABLED
guchar read_byte();
#else
guchar read_byte(std::auto_ptr<Glib::Error>& error);
#endif //GLIBMM_EXCEPTIONS_ENABLED
/** Reads a 16-bit/2-byte value from @a stream.
*
* In order to get the correct byte order for this read operation,
* see Glib::data_stream_get_byte_order() and Glib::data_stream_set_byte_order().
* @param cancellable Optional Cancellable object, <tt>0</tt> to ignore.
* @return A signed 16-bit/2-byte value read from @a stream or %0 if
* an error occurred.
*/
#ifdef GLIBMM_EXCEPTIONS_ENABLED
gint16 read_int16(const Glib::RefPtr<Cancellable>& cancellable);
#else
gint16 read_int16(const Glib::RefPtr<Cancellable>& cancellable, std::auto_ptr<Glib::Error>& error);
#endif //GLIBMM_EXCEPTIONS_ENABLED
/** non-cancellable version of read_int16()
*/
#ifdef GLIBMM_EXCEPTIONS_ENABLED
gint16 read_int16();
#else
gint16 read_int16(std::auto_ptr<Glib::Error>& error);
#endif //GLIBMM_EXCEPTIONS_ENABLED
/** Reads an unsigned 16-bit/2-byte value from @a stream.
*
* In order to get the correct byte order for this read operation,
* see Glib::data_stream_get_byte_order() and Glib::data_stream_set_byte_order().
* @param cancellable Optional Cancellable object, <tt>0</tt> to ignore.
* @return An unsigned 16-bit/2-byte value read from the @a stream or %0 if
* an error occurred.
*/
#ifdef GLIBMM_EXCEPTIONS_ENABLED
guint16 read_uint16(const Glib::RefPtr<Cancellable>& cancellable);
#else
guint16 read_uint16(const Glib::RefPtr<Cancellable>& cancellable, std::auto_ptr<Glib::Error>& error);
#endif //GLIBMM_EXCEPTIONS_ENABLED
//TODO: Real documentation:
/** non-cancellable version of read_uint16()
*/
#ifdef GLIBMM_EXCEPTIONS_ENABLED
guint16 read_uint16();
#else
guint16 read_uint16(std::auto_ptr<Glib::Error>& error);
#endif //GLIBMM_EXCEPTIONS_ENABLED
/** Reads a signed 32-bit/4-byte value from @a stream.
*
* In order to get the correct byte order for this read operation,
* see Glib::data_stream_get_byte_order() and Glib::data_stream_set_byte_order().
*
* The operation can be cancelled by
* triggering the cancellable object from another thread. If the operation
* was cancelled, a Gio::Error will be thrown with CANCELLED.
* @param cancellable Cancellable object.
* @return A signed 32-bit/4-byte value read from the @a stream or %0 if
* an error occurred.
*/
#ifdef GLIBMM_EXCEPTIONS_ENABLED
gint32 read_int32(const Glib::RefPtr<Cancellable>& cancellable);
#else
gint32 read_int32(const Glib::RefPtr<Cancellable>& cancellable, std::auto_ptr<Glib::Error>& error);
#endif //GLIBMM_EXCEPTIONS_ENABLED
/** non-cancellable version of read_int32()
*/
#ifdef GLIBMM_EXCEPTIONS_ENABLED
gint32 read_int32();
#else
gint32 read_int32(std::auto_ptr<Glib::Error>& error);
#endif //GLIBMM_EXCEPTIONS_ENABLED
/** Reads an unsigned 32-bit/4-byte value from @a stream.
*
* In order to get the correct byte order for this read operation,
* see Glib::data_stream_get_byte_order() and Glib::data_stream_set_byte_order().
*
* The operation can be cancelled by
* triggering the cancellable object from another thread. If the operation
* was cancelled, a Gio::Error will be thrown with CANCELLED.
* @param cancellable Cancellable object.
* @return An unsigned 32-bit/4-byte value read from the @a stream or %0 if
* an error occurred.
*/
#ifdef GLIBMM_EXCEPTIONS_ENABLED
guint32 read_uint32(const Glib::RefPtr<Cancellable>& cancellable);
#else
guint32 read_uint32(const Glib::RefPtr<Cancellable>& cancellable, std::auto_ptr<Glib::Error>& error);
#endif //GLIBMM_EXCEPTIONS_ENABLED
/** non-cancellable version of read_uint32()
*/
#ifdef GLIBMM_EXCEPTIONS_ENABLED
guint32 read_uint32();
#else
guint32 read_uint32(std::auto_ptr<Glib::Error>& error);
#endif //GLIBMM_EXCEPTIONS_ENABLED
/** Reads a 64-bit/8-byte value from @a stream.
*
* In order to get the correct byte order for this read operation,
* see Glib::data_stream_get_byte_order() and Glib::data_stream_set_byte_order().
*
* The operation can be cancelled by
* triggering the cancellable object from another thread. If the operation
* was cancelled, a Gio::Error will be thrown with CANCELLED.
* @param cancellable Cancellable object.
* @return A signed 64-bit/8-byte value read from @a stream or %0 if
* an error occurred.
*/
#ifdef GLIBMM_EXCEPTIONS_ENABLED
gint64 read_int64(const Glib::RefPtr<Cancellable>& cancellable);
#else
gint64 read_int64(const Glib::RefPtr<Cancellable>& cancellable, std::auto_ptr<Glib::Error>& error);
#endif //GLIBMM_EXCEPTIONS_ENABLED
/** non-cancellable version of read_int64()
*/
#ifdef GLIBMM_EXCEPTIONS_ENABLED
gint64 read_int64();
#else
gint64 read_int64(std::auto_ptr<Glib::Error>& error);
#endif //GLIBMM_EXCEPTIONS_ENABLED
/** Reads an unsigned 64-bit/8-byte value from @a stream.
*
* In order to get the correct byte order for this read operation,
* see Glib::data_stream_get_byte_order().
*
* The operation can be cancelled by
* triggering the cancellable object from another thread. If the operation
* was cancelled, a Gio::Error will be thrown with CANCELLED.
* @param cancellable Cancellable object.
* @return An unsigned 64-bit/8-byte read from @a stream or %0 if
* an error occurred.
*/
#ifdef GLIBMM_EXCEPTIONS_ENABLED
guint64 read_uint64(const Glib::RefPtr<Cancellable>& cancellable);
#else
guint64 read_uint64(const Glib::RefPtr<Cancellable>& cancellable, std::auto_ptr<Glib::Error>& error);
#endif //GLIBMM_EXCEPTIONS_ENABLED
/** non-cancellable version of read_uint64()
*/
#ifdef GLIBMM_EXCEPTIONS_ENABLED
guint64 read_uint64();
#else
guint64 read_uint64(std::auto_ptr<Glib::Error>& error);
#endif //GLIBMM_EXCEPTIONS_ENABLED
// FIXME: In C, these functions return NULL if there is an error (i.e. end of
// stream reached), but if we use std::string, we don't have a way to tell an
// empty string from NULL. Perhaps we should use raw pointers as in C, but
// that would mean we need to worry about freeing the C string...
#ifdef GLIBMM_EXCEPTIONS_ENABLED
bool read_line(std::string& line, const Glib::RefPtr<Cancellable>& cancellable);
#else
bool read_line(std::string& line, const Glib::RefPtr<Cancellable>& cancellable, std::auto_ptr<Glib::Error>& error);
#endif //GLIBMM_EXCEPTIONS_ENABLED
/** non-cancellable version of read_line()
*/
#ifdef GLIBMM_EXCEPTIONS_ENABLED
bool read_line(std::string& line);
#else
bool read_line(std::string& line, std::auto_ptr<Glib::Error>& error);
#endif //GLIBMM_EXCEPTIONS_ENABLED
#ifdef GLIBMM_EXCEPTIONS_ENABLED
bool read_until(std::string& data, const std::string& stop_chars, const Glib::RefPtr<Cancellable>& cancellable);
#else
bool read_until(std::string& data, const std::string& stop_chars, const Glib::RefPtr<Cancellable>& cancellable, std::auto_ptr<Glib::Error>& error);
#endif //GLIBMM_EXCEPTIONS_ENABLED
/** non-cancellable version of read_until()
*/
#ifdef GLIBMM_EXCEPTIONS_ENABLED
bool read_until(std::string& data, const std::string& stop_chars);
#else
bool read_until(std::string& data, const std::string& stop_chars, std::auto_ptr<Glib::Error>& error);
#endif //GLIBMM_EXCEPTIONS_ENABLED
public:
public:
//C++ methods used to invoke GTK+ virtual functions:
#ifdef GLIBMM_VFUNCS_ENABLED
#endif //GLIBMM_VFUNCS_ENABLED
protected:
//GTK+ Virtual Functions (override these to change behaviour):
#ifdef GLIBMM_VFUNCS_ENABLED
#endif //GLIBMM_VFUNCS_ENABLED
//Default Signal Handlers::
#ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
#endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
};
} // namespace Gio
namespace Glib
{
/** A Glib::wrap() method for this object.
*
* @param object The C instance.
* @param take_copy False if the result should take ownership of the C instance. True if it should take a new copy or ref.
* @result A C++ instance that wraps this C instance.
*
* @relates Gio::DataInputStream
*/
Glib::RefPtr<Gio::DataInputStream> wrap(GDataInputStream* object, bool take_copy = false);
}
#endif /* _GIOMM_DATAINPUTSTREAM_H */

View File

@@ -0,0 +1,489 @@
// Generated by gtkmmproc -- DO NOT MODIFY!
#include <giomm/dataoutputstream.h>
#include <giomm/private/dataoutputstream_p.h>
// -*- Mode: C++; indent-tabs-mode: nil; c-basic-offset: 2 -*-
/* Copyright (C) 2007 The gtkmm Development Team
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#include <gio/gio.h>
namespace Gio
{
#ifdef GLIBMM_EXCEPTIONS_ENABLED
bool DataOutputStream::put_byte(guchar data)
#else
bool DataOutputStream::put_byte(guchar data, std::auto_ptr<Glib::Error>& error)
#endif //GLIBMM_EXCEPTIONS_ENABLED
{
GError* gerror = 0;
guchar retvalue = g_data_output_stream_put_byte(gobj(), data, NULL, &(gerror));
#ifdef GLIBMM_EXCEPTIONS_ENABLED
if(gerror)
::Glib::Error::throw_exception(gerror);
#else
if(gerror)
error = ::Glib::Error::throw_exception(gerror);
#endif //GLIBMM_EXCEPTIONS_ENABLED
return retvalue;
}
#ifdef GLIBMM_EXCEPTIONS_ENABLED
bool DataOutputStream::put_int16(gint16 data)
#else
bool DataOutputStream::put_int16(gint16 data, std::auto_ptr<Glib::Error>& error)
#endif //GLIBMM_EXCEPTIONS_ENABLED
{
GError* gerror = 0;
gint16 retvalue = g_data_output_stream_put_int16(gobj(), data, NULL, &(gerror));
#ifdef GLIBMM_EXCEPTIONS_ENABLED
if(gerror)
::Glib::Error::throw_exception(gerror);
#else
if(gerror)
error = ::Glib::Error::throw_exception(gerror);
#endif //GLIBMM_EXCEPTIONS_ENABLED
return retvalue;
}
#ifdef GLIBMM_EXCEPTIONS_ENABLED
bool DataOutputStream::put_uint16(guint16 data)
#else
bool DataOutputStream::put_uint16(guint16 data, std::auto_ptr<Glib::Error>& error)
#endif //GLIBMM_EXCEPTIONS_ENABLED
{
GError* gerror = 0;
guint16 retvalue = g_data_output_stream_put_uint16(gobj(), data, NULL, &(gerror));
#ifdef GLIBMM_EXCEPTIONS_ENABLED
if(gerror)
::Glib::Error::throw_exception(gerror);
#else
if(gerror)
error = ::Glib::Error::throw_exception(gerror);
#endif //GLIBMM_EXCEPTIONS_ENABLED
return retvalue;
}
#ifdef GLIBMM_EXCEPTIONS_ENABLED
bool DataOutputStream::put_int32(gint32 data)
#else
bool DataOutputStream::put_int32(gint32 data, std::auto_ptr<Glib::Error>& error)
#endif //GLIBMM_EXCEPTIONS_ENABLED
{
GError* gerror = 0;
gint32 retvalue = g_data_output_stream_put_int32(gobj(), data, NULL, &(gerror));
#ifdef GLIBMM_EXCEPTIONS_ENABLED
if(gerror)
::Glib::Error::throw_exception(gerror);
#else
if(gerror)
error = ::Glib::Error::throw_exception(gerror);
#endif //GLIBMM_EXCEPTIONS_ENABLED
return retvalue;
}
#ifdef GLIBMM_EXCEPTIONS_ENABLED
bool DataOutputStream::put_uint32(guint32 data)
#else
bool DataOutputStream::put_uint32(guint32 data, std::auto_ptr<Glib::Error>& error)
#endif //GLIBMM_EXCEPTIONS_ENABLED
{
GError* gerror = 0;
guint32 retvalue = g_data_output_stream_put_uint32(gobj(), data, NULL, &(gerror));
#ifdef GLIBMM_EXCEPTIONS_ENABLED
if(gerror)
::Glib::Error::throw_exception(gerror);
#else
if(gerror)
error = ::Glib::Error::throw_exception(gerror);
#endif //GLIBMM_EXCEPTIONS_ENABLED
return retvalue;
}
#ifdef GLIBMM_EXCEPTIONS_ENABLED
bool DataOutputStream::put_int64(gint64 data)
#else
bool DataOutputStream::put_int64(gint64 data, std::auto_ptr<Glib::Error>& error)
#endif //GLIBMM_EXCEPTIONS_ENABLED
{
GError* gerror = 0;
gint64 retvalue = g_data_output_stream_put_int64(gobj(), data, NULL, &(gerror));
#ifdef GLIBMM_EXCEPTIONS_ENABLED
if(gerror)
::Glib::Error::throw_exception(gerror);
#else
if(gerror)
error = ::Glib::Error::throw_exception(gerror);
#endif //GLIBMM_EXCEPTIONS_ENABLED
return retvalue;
}
#ifdef GLIBMM_EXCEPTIONS_ENABLED
bool DataOutputStream::put_uint64(guint64 data)
#else
bool DataOutputStream::put_uint64(guint64 data, std::auto_ptr<Glib::Error>& error)
#endif //GLIBMM_EXCEPTIONS_ENABLED
{
GError* gerror = 0;
guint64 retvalue = g_data_output_stream_put_uint64(gobj(), data, NULL, &(gerror));
#ifdef GLIBMM_EXCEPTIONS_ENABLED
if(gerror)
::Glib::Error::throw_exception(gerror);
#else
if(gerror)
error = ::Glib::Error::throw_exception(gerror);
#endif //GLIBMM_EXCEPTIONS_ENABLED
return retvalue;
}
#ifdef GLIBMM_EXCEPTIONS_ENABLED
bool DataOutputStream::put_string(std::string str)
#else
bool DataOutputStream::put_string(std::string str, std::auto_ptr<Glib::Error>& error)
#endif //GLIBMM_EXCEPTIONS_ENABLED
{
GError* gerror = 0;
bool retval = g_data_output_stream_put_string(gobj(),
str.c_str (),
NULL,
&gerror);
#ifdef GLIBMM_EXCEPTIONS_ENABLED
if(gerror)
::Glib::Error::throw_exception(gerror);
#else
if(gerror)
error = ::Glib::Error::throw_exception(gerror);
#endif //GLIBMM_EXCEPTIONS_ENABLED
return retval;
}
} // namespace Gio
namespace
{
} // anonymous namespace
namespace Glib
{
Glib::RefPtr<Gio::DataOutputStream> wrap(GDataOutputStream* object, bool take_copy)
{
return Glib::RefPtr<Gio::DataOutputStream>( dynamic_cast<Gio::DataOutputStream*> (Glib::wrap_auto ((GObject*)(object), take_copy)) );
//We use dynamic_cast<> in case of multiple inheritance.
}
} /* namespace Glib */
namespace Gio
{
/* The *_Class implementation: */
const Glib::Class& DataOutputStream_Class::init()
{
if(!gtype_) // create the GType if necessary
{
// Glib::Class has to know the class init function to clone custom types.
class_init_func_ = &DataOutputStream_Class::class_init_function;
// This is actually just optimized away, apparently with no harm.
// Make sure that the parent type has been created.
//CppClassParent::CppObjectType::get_type();
// Create the wrapper type, with the same class/instance size as the base type.
register_derived_type(g_data_output_stream_get_type());
// Add derived versions of interfaces, if the C type implements any interfaces:
}
return *this;
}
void DataOutputStream_Class::class_init_function(void* g_class, void* class_data)
{
BaseClassType *const klass = static_cast<BaseClassType*>(g_class);
CppClassParent::class_init_function(klass, class_data);
#ifdef GLIBMM_VFUNCS_ENABLED
#endif //GLIBMM_VFUNCS_ENABLED
#ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
#endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
}
#ifdef GLIBMM_VFUNCS_ENABLED
#endif //GLIBMM_VFUNCS_ENABLED
#ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
#endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
Glib::ObjectBase* DataOutputStream_Class::wrap_new(GObject* object)
{
return new DataOutputStream((GDataOutputStream*)object);
}
/* The implementation: */
GDataOutputStream* DataOutputStream::gobj_copy()
{
reference();
return gobj();
}
DataOutputStream::DataOutputStream(const Glib::ConstructParams& construct_params)
:
Gio::BufferedOutputStream(construct_params)
{
}
DataOutputStream::DataOutputStream(GDataOutputStream* castitem)
:
Gio::BufferedOutputStream((GBufferedOutputStream*)(castitem))
{}
DataOutputStream::~DataOutputStream()
{}
DataOutputStream::CppClassType DataOutputStream::dataoutputstream_class_; // initialize static member
GType DataOutputStream::get_type()
{
return dataoutputstream_class_.init().get_type();
}
GType DataOutputStream::get_base_type()
{
return g_data_output_stream_get_type();
}
DataOutputStream::DataOutputStream(const Glib::RefPtr<OutputStream>& base_stream)
:
// Mark this class as non-derived to allow C++ vfuncs to be skipped.
Glib::ObjectBase(0),
Gio::BufferedOutputStream(Glib::ConstructParams(dataoutputstream_class_.init(), "base_stream", const_cast<GOutputStream*>(Glib::unwrap(base_stream)), static_cast<char*>(0)))
{
}
Glib::RefPtr<DataOutputStream> DataOutputStream::create(const Glib::RefPtr<OutputStream>& base_stream)
{
return Glib::RefPtr<DataOutputStream>( new DataOutputStream(base_stream) );
}
void DataOutputStream::set_byte_order(DataStreamByteOrder order)
{
g_data_output_stream_set_byte_order(gobj(), ((GDataStreamByteOrder)(order)));
}
DataStreamByteOrder DataOutputStream::get_byte_order() const
{
return ((DataStreamByteOrder)(g_data_output_stream_get_byte_order(const_cast<GDataOutputStream*>(gobj()))));
}
#ifdef GLIBMM_EXCEPTIONS_ENABLED
bool DataOutputStream::put_byte(guchar data, const Glib::RefPtr<Cancellable>& cancellable)
#else
bool DataOutputStream::put_byte(guchar data, const Glib::RefPtr<Cancellable>& cancellable, std::auto_ptr<Glib::Error>& error)
#endif //GLIBMM_EXCEPTIONS_ENABLED
{
GError* gerror = 0;
bool retvalue = g_data_output_stream_put_byte(gobj(), data, const_cast<GCancellable*>(Glib::unwrap(cancellable)), &(gerror));
#ifdef GLIBMM_EXCEPTIONS_ENABLED
if(gerror)
::Glib::Error::throw_exception(gerror);
#else
if(gerror)
error = ::Glib::Error::throw_exception(gerror);
#endif //GLIBMM_EXCEPTIONS_ENABLED
return retvalue;
}
#ifdef GLIBMM_EXCEPTIONS_ENABLED
bool DataOutputStream::put_int16(gint16 data, const Glib::RefPtr<Cancellable>& cancellable)
#else
bool DataOutputStream::put_int16(gint16 data, const Glib::RefPtr<Cancellable>& cancellable, std::auto_ptr<Glib::Error>& error)
#endif //GLIBMM_EXCEPTIONS_ENABLED
{
GError* gerror = 0;
bool retvalue = g_data_output_stream_put_int16(gobj(), data, const_cast<GCancellable*>(Glib::unwrap(cancellable)), &(gerror));
#ifdef GLIBMM_EXCEPTIONS_ENABLED
if(gerror)
::Glib::Error::throw_exception(gerror);
#else
if(gerror)
error = ::Glib::Error::throw_exception(gerror);
#endif //GLIBMM_EXCEPTIONS_ENABLED
return retvalue;
}
#ifdef GLIBMM_EXCEPTIONS_ENABLED
bool DataOutputStream::put_uint16(guint16 data, const Glib::RefPtr<Cancellable>& cancellable)
#else
bool DataOutputStream::put_uint16(guint16 data, const Glib::RefPtr<Cancellable>& cancellable, std::auto_ptr<Glib::Error>& error)
#endif //GLIBMM_EXCEPTIONS_ENABLED
{
GError* gerror = 0;
bool retvalue = g_data_output_stream_put_uint16(gobj(), data, const_cast<GCancellable*>(Glib::unwrap(cancellable)), &(gerror));
#ifdef GLIBMM_EXCEPTIONS_ENABLED
if(gerror)
::Glib::Error::throw_exception(gerror);
#else
if(gerror)
error = ::Glib::Error::throw_exception(gerror);
#endif //GLIBMM_EXCEPTIONS_ENABLED
return retvalue;
}
#ifdef GLIBMM_EXCEPTIONS_ENABLED
bool DataOutputStream::put_int32(gint32 data, const Glib::RefPtr<Cancellable>& cancellable)
#else
bool DataOutputStream::put_int32(gint32 data, const Glib::RefPtr<Cancellable>& cancellable, std::auto_ptr<Glib::Error>& error)
#endif //GLIBMM_EXCEPTIONS_ENABLED
{
GError* gerror = 0;
bool retvalue = g_data_output_stream_put_int32(gobj(), data, const_cast<GCancellable*>(Glib::unwrap(cancellable)), &(gerror));
#ifdef GLIBMM_EXCEPTIONS_ENABLED
if(gerror)
::Glib::Error::throw_exception(gerror);
#else
if(gerror)
error = ::Glib::Error::throw_exception(gerror);
#endif //GLIBMM_EXCEPTIONS_ENABLED
return retvalue;
}
#ifdef GLIBMM_EXCEPTIONS_ENABLED
bool DataOutputStream::put_uint32(guint32 data, const Glib::RefPtr<Cancellable>& cancellable)
#else
bool DataOutputStream::put_uint32(guint32 data, const Glib::RefPtr<Cancellable>& cancellable, std::auto_ptr<Glib::Error>& error)
#endif //GLIBMM_EXCEPTIONS_ENABLED
{
GError* gerror = 0;
bool retvalue = g_data_output_stream_put_uint32(gobj(), data, const_cast<GCancellable*>(Glib::unwrap(cancellable)), &(gerror));
#ifdef GLIBMM_EXCEPTIONS_ENABLED
if(gerror)
::Glib::Error::throw_exception(gerror);
#else
if(gerror)
error = ::Glib::Error::throw_exception(gerror);
#endif //GLIBMM_EXCEPTIONS_ENABLED
return retvalue;
}
#ifdef GLIBMM_EXCEPTIONS_ENABLED
bool DataOutputStream::put_int64(gint64 data, const Glib::RefPtr<Cancellable>& cancellable)
#else
bool DataOutputStream::put_int64(gint64 data, const Glib::RefPtr<Cancellable>& cancellable, std::auto_ptr<Glib::Error>& error)
#endif //GLIBMM_EXCEPTIONS_ENABLED
{
GError* gerror = 0;
bool retvalue = g_data_output_stream_put_int64(gobj(), data, const_cast<GCancellable*>(Glib::unwrap(cancellable)), &(gerror));
#ifdef GLIBMM_EXCEPTIONS_ENABLED
if(gerror)
::Glib::Error::throw_exception(gerror);
#else
if(gerror)
error = ::Glib::Error::throw_exception(gerror);
#endif //GLIBMM_EXCEPTIONS_ENABLED
return retvalue;
}
#ifdef GLIBMM_EXCEPTIONS_ENABLED
bool DataOutputStream::put_uint64(guint64 data, const Glib::RefPtr<Cancellable>& cancellable)
#else
bool DataOutputStream::put_uint64(guint64 data, const Glib::RefPtr<Cancellable>& cancellable, std::auto_ptr<Glib::Error>& error)
#endif //GLIBMM_EXCEPTIONS_ENABLED
{
GError* gerror = 0;
bool retvalue = g_data_output_stream_put_uint64(gobj(), data, const_cast<GCancellable*>(Glib::unwrap(cancellable)), &(gerror));
#ifdef GLIBMM_EXCEPTIONS_ENABLED
if(gerror)
::Glib::Error::throw_exception(gerror);
#else
if(gerror)
error = ::Glib::Error::throw_exception(gerror);
#endif //GLIBMM_EXCEPTIONS_ENABLED
return retvalue;
}
#ifdef GLIBMM_EXCEPTIONS_ENABLED
bool DataOutputStream::put_string(std::string str, const Glib::RefPtr<Cancellable>& cancellable)
#else
bool DataOutputStream::put_string(std::string str, const Glib::RefPtr<Cancellable>& cancellable, std::auto_ptr<Glib::Error>& error)
#endif //GLIBMM_EXCEPTIONS_ENABLED
{
GError* gerror = 0;
bool retvalue = g_data_output_stream_put_string(gobj(), str.c_str(), const_cast<GCancellable*>(Glib::unwrap(cancellable)), &(gerror));
#ifdef GLIBMM_EXCEPTIONS_ENABLED
if(gerror)
::Glib::Error::throw_exception(gerror);
#else
if(gerror)
error = ::Glib::Error::throw_exception(gerror);
#endif //GLIBMM_EXCEPTIONS_ENABLED
return retvalue;
}
#ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
#endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
#ifdef GLIBMM_VFUNCS_ENABLED
#endif //GLIBMM_VFUNCS_ENABLED
} // namespace Gio

View File

@@ -0,0 +1,318 @@
// -*- c++ -*-
// Generated by gtkmmproc -- DO NOT MODIFY!
#ifndef _GIOMM_DATAOUTPUTSTREAM_H
#define _GIOMM_DATAOUTPUTSTREAM_H
#include <glibmm.h>
// -*- Mode: C++; indent-tabs-mode: nil; c-basic-offset: 2 -*-
/* Copyright (C) 2007 The gtkmm Development Team
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#include <giomm/bufferedoutputstream.h>
#include <giomm/enums.h>
#ifndef DOXYGEN_SHOULD_SKIP_THIS
typedef struct _GDataOutputStream GDataOutputStream;
typedef struct _GDataOutputStreamClass GDataOutputStreamClass;
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
namespace Gio
{ class DataOutputStream_Class; } // namespace Gio
namespace Gio
{
/**
* An implementation of BufferedOutputStream that allows for high-level data
* manipulation of arbitrary data (including binary operations).
*
* @ingroup Streams
*
* @newin2p16
*/
class DataOutputStream : public Gio::BufferedOutputStream
{
#ifndef DOXYGEN_SHOULD_SKIP_THIS
public:
typedef DataOutputStream CppObjectType;
typedef DataOutputStream_Class CppClassType;
typedef GDataOutputStream BaseObjectType;
typedef GDataOutputStreamClass BaseClassType;
private: friend class DataOutputStream_Class;
static CppClassType dataoutputstream_class_;
private:
// noncopyable
DataOutputStream(const DataOutputStream&);
DataOutputStream& operator=(const DataOutputStream&);
protected:
explicit DataOutputStream(const Glib::ConstructParams& construct_params);
explicit DataOutputStream(GDataOutputStream* castitem);
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
public:
virtual ~DataOutputStream();
#ifndef DOXYGEN_SHOULD_SKIP_THIS
static GType get_type() G_GNUC_CONST;
static GType get_base_type() G_GNUC_CONST;
#endif
///Provides access to the underlying C GObject.
GDataOutputStream* gobj() { return reinterpret_cast<GDataOutputStream*>(gobject_); }
///Provides access to the underlying C GObject.
const GDataOutputStream* gobj() const { return reinterpret_cast<GDataOutputStream*>(gobject_); }
///Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
GDataOutputStream* gobj_copy();
private:
protected:
explicit DataOutputStream(const Glib::RefPtr<OutputStream>& base_stream);
public:
static Glib::RefPtr<DataOutputStream> create(const Glib::RefPtr<OutputStream>& base_stream);
/** Sets the byte order of the data output stream to @a order.
* @param order A DataStreamByteOrder.
*/
void set_byte_order(DataStreamByteOrder order);
/** Gets the byte order for the stream.
* @return The DataStreamByteOrder for the @a stream.
*/
DataStreamByteOrder get_byte_order() const;
/** Puts a byte into the output stream.
* @param data A #guchar.
* @param cancellable Optional Cancellable object, <tt>0</tt> to ignore.
* @return <tt>true</tt> if @a data was successfully added to the @a stream.
*/
#ifdef GLIBMM_EXCEPTIONS_ENABLED
bool put_byte(guchar data, const Glib::RefPtr<Cancellable>& cancellable);
#else
bool put_byte(guchar data, const Glib::RefPtr<Cancellable>& cancellable, std::auto_ptr<Glib::Error>& error);
#endif //GLIBMM_EXCEPTIONS_ENABLED
/** non-cancellable version of put_byte()
*/
#ifdef GLIBMM_EXCEPTIONS_ENABLED
bool put_byte(guchar data);
#else
bool put_byte(guchar data, std::auto_ptr<Glib::Error>& error);
#endif //GLIBMM_EXCEPTIONS_ENABLED
/** Puts a signed 16-bit integer into the output stream.
* @param data A #gint16.
* @param cancellable Optional Cancellable object, <tt>0</tt> to ignore.
* @return <tt>true</tt> if @a data was successfully added to the @a stream.
*/
#ifdef GLIBMM_EXCEPTIONS_ENABLED
bool put_int16(gint16 data, const Glib::RefPtr<Cancellable>& cancellable);
#else
bool put_int16(gint16 data, const Glib::RefPtr<Cancellable>& cancellable, std::auto_ptr<Glib::Error>& error);
#endif //GLIBMM_EXCEPTIONS_ENABLED
/** non-cancellable version of put_int16()
*/
#ifdef GLIBMM_EXCEPTIONS_ENABLED
bool put_int16(gint16 data);
#else
bool put_int16(gint16 data, std::auto_ptr<Glib::Error>& error);
#endif //GLIBMM_EXCEPTIONS_ENABLED
/** Puts an unsigned 16-bit integer into the output stream.
* @param data A #guint16.
* @param cancellable Optional Cancellable object, <tt>0</tt> to ignore.
* @return <tt>true</tt> if @a data was successfully added to the @a stream.
*/
#ifdef GLIBMM_EXCEPTIONS_ENABLED
bool put_uint16(guint16 data, const Glib::RefPtr<Cancellable>& cancellable);
#else
bool put_uint16(guint16 data, const Glib::RefPtr<Cancellable>& cancellable, std::auto_ptr<Glib::Error>& error);
#endif //GLIBMM_EXCEPTIONS_ENABLED
/** non-cancellable version of put_uint16()
*/
#ifdef GLIBMM_EXCEPTIONS_ENABLED
bool put_uint16(guint16 data);
#else
bool put_uint16(guint16 data, std::auto_ptr<Glib::Error>& error);
#endif //GLIBMM_EXCEPTIONS_ENABLED
/** Puts a signed 32-bit integer into the output stream.
* @param data A #gint32.
* @param cancellable Optional Cancellable object, <tt>0</tt> to ignore.
* @return <tt>true</tt> if @a data was successfully added to the @a stream.
*/
#ifdef GLIBMM_EXCEPTIONS_ENABLED
bool put_int32(gint32 data, const Glib::RefPtr<Cancellable>& cancellable);
#else
bool put_int32(gint32 data, const Glib::RefPtr<Cancellable>& cancellable, std::auto_ptr<Glib::Error>& error);
#endif //GLIBMM_EXCEPTIONS_ENABLED
/** non-cancellable version of put_int32()
*/
#ifdef GLIBMM_EXCEPTIONS_ENABLED
bool put_int32(gint32 data);
#else
bool put_int32(gint32 data, std::auto_ptr<Glib::Error>& error);
#endif //GLIBMM_EXCEPTIONS_ENABLED
/** Puts an unsigned 32-bit integer into the stream.
* @param data A #guint32.
* @param cancellable Optional Cancellable object, <tt>0</tt> to ignore.
* @return <tt>true</tt> if @a data was successfully added to the @a stream.
*/
#ifdef GLIBMM_EXCEPTIONS_ENABLED
bool put_uint32(guint32 data, const Glib::RefPtr<Cancellable>& cancellable);
#else
bool put_uint32(guint32 data, const Glib::RefPtr<Cancellable>& cancellable, std::auto_ptr<Glib::Error>& error);
#endif //GLIBMM_EXCEPTIONS_ENABLED
/** non-cancellable version of put_uint32()
*/
#ifdef GLIBMM_EXCEPTIONS_ENABLED
bool put_uint32(guint32 data);
#else
bool put_uint32(guint32 data, std::auto_ptr<Glib::Error>& error);
#endif //GLIBMM_EXCEPTIONS_ENABLED
/** Puts a signed 64-bit integer into the stream.
* @param data A #gint64.
* @param cancellable Optional Cancellable object, <tt>0</tt> to ignore.
* @return <tt>true</tt> if @a data was successfully added to the @a stream.
*/
#ifdef GLIBMM_EXCEPTIONS_ENABLED
bool put_int64(gint64 data, const Glib::RefPtr<Cancellable>& cancellable);
#else
bool put_int64(gint64 data, const Glib::RefPtr<Cancellable>& cancellable, std::auto_ptr<Glib::Error>& error);
#endif //GLIBMM_EXCEPTIONS_ENABLED
/** non-cancellable version of put_int64()
*/
#ifdef GLIBMM_EXCEPTIONS_ENABLED
bool put_int64(gint64 data);
#else
bool put_int64(gint64 data, std::auto_ptr<Glib::Error>& error);
#endif //GLIBMM_EXCEPTIONS_ENABLED
/** Puts an unsigned 64-bit integer into the stream.
* @param data A #guint64.
* @param cancellable Optional Cancellable object, <tt>0</tt> to ignore.
* @return <tt>true</tt> if @a data was successfully added to the @a stream.
*/
#ifdef GLIBMM_EXCEPTIONS_ENABLED
bool put_uint64(guint64 data, const Glib::RefPtr<Cancellable>& cancellable);
#else
bool put_uint64(guint64 data, const Glib::RefPtr<Cancellable>& cancellable, std::auto_ptr<Glib::Error>& error);
#endif //GLIBMM_EXCEPTIONS_ENABLED
/** non-cancellable version of put_uint64()
*/
#ifdef GLIBMM_EXCEPTIONS_ENABLED
bool put_uint64(guint64 data);
#else
bool put_uint64(guint64 data, std::auto_ptr<Glib::Error>& error);
#endif //GLIBMM_EXCEPTIONS_ENABLED
/** Puts a string into the output stream.
* @param str A string.
* @param cancellable Optional Cancellable object, <tt>0</tt> to ignore.
* @return <tt>true</tt> if @a string was successfully added to the @a stream.
*/
#ifdef GLIBMM_EXCEPTIONS_ENABLED
bool put_string(std::string str, const Glib::RefPtr<Cancellable>& cancellable);
#else
bool put_string(std::string str, const Glib::RefPtr<Cancellable>& cancellable, std::auto_ptr<Glib::Error>& error);
#endif //GLIBMM_EXCEPTIONS_ENABLED
/** non-cancellable version of put_string()
*/
#ifdef GLIBMM_EXCEPTIONS_ENABLED
bool put_string(std::string str);
#else
bool put_string(std::string str, std::auto_ptr<Glib::Error>& error);
#endif //GLIBMM_EXCEPTIONS_ENABLED
public:
public:
//C++ methods used to invoke GTK+ virtual functions:
#ifdef GLIBMM_VFUNCS_ENABLED
#endif //GLIBMM_VFUNCS_ENABLED
protected:
//GTK+ Virtual Functions (override these to change behaviour):
#ifdef GLIBMM_VFUNCS_ENABLED
#endif //GLIBMM_VFUNCS_ENABLED
//Default Signal Handlers::
#ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
#endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
};
} // namespace Gio
namespace Glib
{
/** A Glib::wrap() method for this object.
*
* @param object The C instance.
* @param take_copy False if the result should take ownership of the C instance. True if it should take a new copy or ref.
* @result A C++ instance that wraps this C instance.
*
* @relates Gio::DataOutputStream
*/
Glib::RefPtr<Gio::DataOutputStream> wrap(GDataOutputStream* object, bool take_copy = false);
}
#endif /* _GIOMM_DATAOUTPUTSTREAM_H */

View File

@@ -0,0 +1,177 @@
// Generated by gtkmmproc -- DO NOT MODIFY!
#include <giomm/desktopappinfo.h>
#include <giomm/private/desktopappinfo_p.h>
// -*- Mode: C++; indent-tabs-mode: nil; c-basic-offset: 2 -*-
/* Copyright (C) 2007 The gtkmm Development Team
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#include <gio/gio.h>
#include <gio/gdesktopappinfo.h>
namespace
{
} // anonymous namespace
namespace Glib
{
Glib::RefPtr<Gio::DesktopAppInfo> wrap(GDesktopAppInfo* object, bool take_copy)
{
return Glib::RefPtr<Gio::DesktopAppInfo>( dynamic_cast<Gio::DesktopAppInfo*> (Glib::wrap_auto ((GObject*)(object), take_copy)) );
//We use dynamic_cast<> in case of multiple inheritance.
}
} /* namespace Glib */
namespace Gio
{
/* The *_Class implementation: */
const Glib::Class& DesktopAppInfo_Class::init()
{
if(!gtype_) // create the GType if necessary
{
// Glib::Class has to know the class init function to clone custom types.
class_init_func_ = &DesktopAppInfo_Class::class_init_function;
// This is actually just optimized away, apparently with no harm.
// Make sure that the parent type has been created.
//CppClassParent::CppObjectType::get_type();
// Create the wrapper type, with the same class/instance size as the base type.
register_derived_type(g_desktop_app_info_get_type());
// Add derived versions of interfaces, if the C type implements any interfaces:
AppInfo::add_interface(get_type());
}
return *this;
}
void DesktopAppInfo_Class::class_init_function(void* g_class, void* class_data)
{
BaseClassType *const klass = static_cast<BaseClassType*>(g_class);
CppClassParent::class_init_function(klass, class_data);
#ifdef GLIBMM_VFUNCS_ENABLED
#endif //GLIBMM_VFUNCS_ENABLED
#ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
#endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
}
#ifdef GLIBMM_VFUNCS_ENABLED
#endif //GLIBMM_VFUNCS_ENABLED
#ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
#endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
Glib::ObjectBase* DesktopAppInfo_Class::wrap_new(GObject* object)
{
return new DesktopAppInfo((GDesktopAppInfo*)object);
}
/* The implementation: */
GDesktopAppInfo* DesktopAppInfo::gobj_copy()
{
reference();
return gobj();
}
DesktopAppInfo::DesktopAppInfo(const Glib::ConstructParams& construct_params)
:
Glib::Object(construct_params)
{
}
DesktopAppInfo::DesktopAppInfo(GDesktopAppInfo* castitem)
:
Glib::Object((GObject*)(castitem))
{}
DesktopAppInfo::~DesktopAppInfo()
{}
DesktopAppInfo::CppClassType DesktopAppInfo::desktopappinfo_class_; // initialize static member
GType DesktopAppInfo::get_type()
{
return desktopappinfo_class_.init().get_type();
}
GType DesktopAppInfo::get_base_type()
{
return g_desktop_app_info_get_type();
}
DesktopAppInfo::DesktopAppInfo(const std::string& desktop_id)
:
// Mark this class as non-derived to allow C++ vfuncs to be skipped.
Glib::ObjectBase(0),
Glib::Object(Glib::ConstructParams(desktopappinfo_class_.init(), "desktop_id", desktop_id.c_str(), static_cast<char*>(0)))
{
}
Glib::RefPtr<DesktopAppInfo> DesktopAppInfo::create(const std::string& desktop_id)
{
return Glib::RefPtr<DesktopAppInfo>( new DesktopAppInfo(desktop_id) );
}
Glib::RefPtr<DesktopAppInfo> DesktopAppInfo::create_from_filename(const std::string& filename)
{
return Glib::wrap(g_desktop_app_info_new_from_filename(filename.c_str()));
}
bool DesktopAppInfo::is_hidden() const
{
return g_desktop_app_info_get_is_hidden(const_cast<GDesktopAppInfo*>(gobj()));
}
void DesktopAppInfo::set_desktop_env(const std::string& desktop_env)
{
g_desktop_app_info_set_desktop_env(desktop_env.c_str());
}
#ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
#endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
#ifdef GLIBMM_VFUNCS_ENABLED
#endif //GLIBMM_VFUNCS_ENABLED
} // namespace Gio

View File

@@ -0,0 +1,182 @@
// -*- c++ -*-
// Generated by gtkmmproc -- DO NOT MODIFY!
#ifndef _GIOMM_DESKTOPAPPINFO_H
#define _GIOMM_DESKTOPAPPINFO_H
#include <glibmm.h>
// -*- Mode: C++; indent-tabs-mode: nil; c-basic-offset: 2 -*-
/* Copyright (C) 2007 The gtkmm Development Team
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#include <glibmm/object.h>
#include <giomm/appinfo.h>
#ifndef DOXYGEN_SHOULD_SKIP_THIS
typedef struct _GDesktopAppInfo GDesktopAppInfo;
typedef struct _GDesktopAppInfoClass GDesktopAppInfoClass;
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
namespace Gio
{ class DesktopAppInfo_Class; } // namespace Gio
namespace Gio
{
/**
* DesktopAppInfo is an implementation of AppInfo based on desktop files.
*
* @newin2p16
*/
class DesktopAppInfo
: public Glib::Object,
public AppInfo
{
#ifndef DOXYGEN_SHOULD_SKIP_THIS
public:
typedef DesktopAppInfo CppObjectType;
typedef DesktopAppInfo_Class CppClassType;
typedef GDesktopAppInfo BaseObjectType;
typedef GDesktopAppInfoClass BaseClassType;
private: friend class DesktopAppInfo_Class;
static CppClassType desktopappinfo_class_;
private:
// noncopyable
DesktopAppInfo(const DesktopAppInfo&);
DesktopAppInfo& operator=(const DesktopAppInfo&);
protected:
explicit DesktopAppInfo(const Glib::ConstructParams& construct_params);
explicit DesktopAppInfo(GDesktopAppInfo* castitem);
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
public:
virtual ~DesktopAppInfo();
#ifndef DOXYGEN_SHOULD_SKIP_THIS
static GType get_type() G_GNUC_CONST;
static GType get_base_type() G_GNUC_CONST;
#endif
///Provides access to the underlying C GObject.
GDesktopAppInfo* gobj() { return reinterpret_cast<GDesktopAppInfo*>(gobject_); }
///Provides access to the underlying C GObject.
const GDesktopAppInfo* gobj() const { return reinterpret_cast<GDesktopAppInfo*>(gobject_); }
///Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
GDesktopAppInfo* gobj_copy();
private:
//This is not available in on Win32.
//This source file will not be compiled,
//and the class will not be registered in wrap_init.h or wrap_init.cc
protected:
explicit DesktopAppInfo(const std::string& desktop_id);
public:
static Glib::RefPtr<DesktopAppInfo> create(const std::string& desktop_id);
//TODO: Use _WRAP_CREATE(), but how do we override the constructor for this? murrayc.
/** Creates a new DesktopAppInfo.
* @param filename A string containing a file name.
* @return A new DesktopAppInfo or <tt>0</tt> on error.
*/
static Glib::RefPtr<DesktopAppInfo> create_from_filename(const std::string& filename);
/** A desktop file is hidden if the Hidden key in it is
* set to True.
* @return <tt>true</tt> if hidden, <tt>false</tt> otherwise.
*/
bool is_hidden() const;
/** Sets the name of the desktop that the application is running in.
* This is used by g_app_info_should_show() to evaluate the
* <tt>OnlyShowIn</tt> and <tt>NotShowIn</tt>
* desktop entry fields.
*
* The Desktop
* Menu specification recognizes the following:
* &lt;simplelist&gt;
* &lt;member&gt;GNOME&lt;/member&gt;
* &lt;member&gt;KDE&lt;/member&gt;
* &lt;member&gt;ROX&lt;/member&gt;
* &lt;member&gt;XFCE&lt;/member&gt;
* &lt;member&gt;Old&lt;/member&gt;
* &lt;/simplelist&gt;
*
* Should be called only once; subsequent calls are ignored.
* @param desktop_env A string specifying what desktop this is.
*/
static void set_desktop_env(const std::string& desktop_env);
public:
public:
//C++ methods used to invoke GTK+ virtual functions:
#ifdef GLIBMM_VFUNCS_ENABLED
#endif //GLIBMM_VFUNCS_ENABLED
protected:
//GTK+ Virtual Functions (override these to change behaviour):
#ifdef GLIBMM_VFUNCS_ENABLED
#endif //GLIBMM_VFUNCS_ENABLED
//Default Signal Handlers::
#ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
#endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
};
} // namespace Gio
namespace Glib
{
/** A Glib::wrap() method for this object.
*
* @param object The C instance.
* @param take_copy False if the result should take ownership of the C instance. True if it should take a new copy or ref.
* @result A C++ instance that wraps this C instance.
*
* @relates Gio::DesktopAppInfo
*/
Glib::RefPtr<Gio::DesktopAppInfo> wrap(GDesktopAppInfo* object, bool take_copy = false);
}
#endif /* _GIOMM_DESKTOPAPPINFO_H */

View File

@@ -0,0 +1,328 @@
// Generated by gtkmmproc -- DO NOT MODIFY!
#include <giomm/drive.h>
#include <giomm/private/drive_p.h>
// -*- Mode: C++; indent-tabs-mode: nil; c-basic-offset: 2 -*-
/* Copyright (C) 2007 The gtkmm Development Team
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#include <gio/gio.h>
#include <glibmm/error.h>
#include <glibmm/exceptionhandler.h>
#include "slot_async.h"
namespace Gio
{
void Drive::eject(const SlotAsyncReady& slot, const Glib::RefPtr<Cancellable>& cancellable, MountUnmountFlags flags)
{
// 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_drive_eject(gobj(),
static_cast<GMountUnmountFlags>(flags),
cancellable->gobj(),
&SignalProxy_async_callback,
slot_copy);
}
void Drive::eject(const SlotAsyncReady& slot, MountUnmountFlags flags)
{
// 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_drive_eject(gobj(),
static_cast<GMountUnmountFlags>(flags),
NULL, // cancellable
&SignalProxy_async_callback,
slot_copy);
}
void Drive::eject(MountUnmountFlags flags)
{
g_drive_eject(gobj(),
static_cast<GMountUnmountFlags>(flags),
NULL, // cancellable
NULL,
NULL);
}
void Drive::poll_for_media(const SlotAsyncReady& slot, const Glib::RefPtr<Cancellable>& cancellable)
{
// 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_drive_poll_for_media(gobj(),
cancellable->gobj(),
&SignalProxy_async_callback,
slot_copy);
}
void Drive::poll_for_media(const SlotAsyncReady& slot)
{
// 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_drive_poll_for_media(gobj(),
NULL, // cancellable
&SignalProxy_async_callback,
slot_copy);
}
void Drive::poll_for_media()
{
g_drive_poll_for_media(gobj(),
NULL, // cancellable
NULL,
NULL);
}
} // namespace Gio
namespace
{
} // anonymous namespace
namespace Glib
{
Glib::RefPtr<Gio::Drive> wrap(GDrive* object, bool take_copy)
{
return Glib::RefPtr<Gio::Drive>( dynamic_cast<Gio::Drive*> (Glib::wrap_auto_interface<Gio::Drive> ((GObject*)(object), take_copy)) );
//We use dynamic_cast<> in case of multiple inheritance.
}
} // namespace Glib
namespace Gio
{
/* The *_Class implementation: */
const Glib::Interface_Class& Drive_Class::init()
{
if(!gtype_) // create the GType if necessary
{
// Glib::Interface_Class has to know the interface init function
// in order to add interfaces to implementing types.
class_init_func_ = &Drive_Class::iface_init_function;
// We can not derive from another interface, and it is not necessary anyway.
gtype_ = g_drive_get_type();
}
return *this;
}
void Drive_Class::iface_init_function(void* g_iface, void*)
{
BaseClassType *const klass = static_cast<BaseClassType*>(g_iface);
//This is just to avoid an "unused variable" warning when there are no vfuncs or signal handlers to connect.
//This is a temporary fix until I find out why I can not seem to derive a GtkFileChooser interface. murrayc
g_assert(klass != 0);
#ifdef GLIBMM_VFUNCS_ENABLED
#endif //GLIBMM_VFUNCS_ENABLED
#ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
#endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
}
#ifdef GLIBMM_VFUNCS_ENABLED
#endif //GLIBMM_VFUNCS_ENABLED
#ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
#endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
Glib::ObjectBase* Drive_Class::wrap_new(GObject* object)
{
return new Drive((GDrive*)(object));
}
/* The implementation: */
Drive::Drive()
:
Glib::Interface(drive_class_.init())
{}
Drive::Drive(GDrive* castitem)
:
Glib::Interface((GObject*)(castitem))
{}
Drive::Drive(const Glib::Interface_Class& interface_class)
: Glib::Interface(interface_class)
{
}
Drive::~Drive()
{}
// static
void Drive::add_interface(GType gtype_implementer)
{
drive_class_.init().add_interface(gtype_implementer);
}
Drive::CppClassType Drive::drive_class_; // initialize static member
GType Drive::get_type()
{
return drive_class_.init().get_type();
}
GType Drive::get_base_type()
{
return g_drive_get_type();
}
Glib::ustring Drive::get_name() const
{
return Glib::convert_return_gchar_ptr_to_ustring(g_drive_get_name(const_cast<GDrive*>(gobj())));
}
Glib::RefPtr<Icon> Drive::get_icon()
{
Glib::RefPtr<Icon> retvalue = Glib::wrap(g_drive_get_icon(gobj()));
if(retvalue)
retvalue->reference(); //The function does not do a ref for us.
return retvalue;
}
Glib::RefPtr<const Icon> Drive::get_icon() const
{
return const_cast<Drive*>(this)->get_icon();
}
bool Drive::has_volumes() const
{
return g_drive_has_volumes(const_cast<GDrive*>(gobj()));
}
Glib::ListHandle< Glib::RefPtr<Volume> > Drive::get_volumes()
{
return Glib::ListHandle< Glib::RefPtr<Volume> >(g_drive_get_volumes(gobj()), Glib::OWNERSHIP_SHALLOW);
}
bool Drive::is_media_removable() const
{
return g_drive_is_media_removable(const_cast<GDrive*>(gobj()));
}
bool Drive::has_media() const
{
return g_drive_has_media(const_cast<GDrive*>(gobj()));
}
bool Drive::is_media_check_automatic() const
{
return g_drive_is_media_check_automatic(const_cast<GDrive*>(gobj()));
}
bool Drive::can_poll_for_media() const
{
return g_drive_can_poll_for_media(const_cast<GDrive*>(gobj()));
}
bool Drive::can_eject() const
{
return g_drive_can_eject(const_cast<GDrive*>(gobj()));
}
#ifdef GLIBMM_EXCEPTIONS_ENABLED
bool Drive::eject_finish(const Glib::RefPtr<AsyncResult>& result)
#else
bool Drive::eject_finish(const Glib::RefPtr<AsyncResult>& result, std::auto_ptr<Glib::Error>& error)
#endif //GLIBMM_EXCEPTIONS_ENABLED
{
GError* gerror = 0;
bool retvalue = g_drive_eject_finish(gobj(), Glib::unwrap(result), &(gerror));
#ifdef GLIBMM_EXCEPTIONS_ENABLED
if(gerror)
::Glib::Error::throw_exception(gerror);
#else
if(gerror)
error = ::Glib::Error::throw_exception(gerror);
#endif //GLIBMM_EXCEPTIONS_ENABLED
return retvalue;
}
#ifdef GLIBMM_EXCEPTIONS_ENABLED
bool Drive::poll_for_media_finish(const Glib::RefPtr<AsyncResult>& result)
#else
bool Drive::poll_for_media_finish(const Glib::RefPtr<AsyncResult>& result, std::auto_ptr<Glib::Error>& error)
#endif //GLIBMM_EXCEPTIONS_ENABLED
{
GError* gerror = 0;
bool retvalue = g_drive_poll_for_media_finish(gobj(), Glib::unwrap(result), &(gerror));
#ifdef GLIBMM_EXCEPTIONS_ENABLED
if(gerror)
::Glib::Error::throw_exception(gerror);
#else
if(gerror)
error = ::Glib::Error::throw_exception(gerror);
#endif //GLIBMM_EXCEPTIONS_ENABLED
return retvalue;
}
std::string Drive::get_identifier(const std::string& kind) const
{
return Glib::convert_return_gchar_ptr_to_stdstring(g_drive_get_identifier(const_cast<GDrive*>(gobj()), kind.c_str()));
}
Glib::StringArrayHandle Drive::enumerate_identifiers() const
{
return Glib::StringArrayHandle(g_drive_enumerate_identifiers(const_cast<GDrive*>(gobj())));
}
#ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
#endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
#ifdef GLIBMM_VFUNCS_ENABLED
#endif //GLIBMM_VFUNCS_ENABLED
} // namespace Gio

View File

@@ -0,0 +1,342 @@
// -*- c++ -*-
// Generated by gtkmmproc -- DO NOT MODIFY!
#ifndef _GIOMM_DRIVE_H
#define _GIOMM_DRIVE_H
#include <glibmm.h>
// -*- Mode: C++; indent-tabs-mode: nil; c-basic-offset: 2 -*-
/* Copyright (C) 2007 The gtkmm Development Team
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#include <giomm/mount.h>
#include <giomm/icon.h>
//#include <giomm/mountoperation.h>
#ifndef DOXYGEN_SHOULD_SKIP_THIS
typedef struct _GDriveIface GDriveIface;
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
#ifndef DOXYGEN_SHOULD_SKIP_THIS
typedef struct _GDrive GDrive;
typedef struct _GDriveClass GDriveClass;
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
namespace Gio
{ class Drive_Class; } // namespace Gio
namespace Gio
{
/** Virtual File System drive management.
*
* This represent a piece of hardware connected to the machine. It's generally only created for removable hardware or hardware with removable media.
* Gio::Drive is a container class for Gio::Volume objects that stem from the same piece of media. As such, Gio::Drive abstracts a drive with
* (or without) removable media and provides operations for querying whether media is available, determing whether media change is automatically
* detected and ejecting the media.
*
* If the Gio::Drive reports that media isn't automatically detected, one can poll for media; typically one should not do this periodically as a
* poll for media operation is potententially expensive and may spin up the drive, creating noise.
*
* @newin2p16
*/
class Drive : public Glib::Interface
{
#ifndef DOXYGEN_SHOULD_SKIP_THIS
public:
typedef Drive CppObjectType;
typedef Drive_Class CppClassType;
typedef GDrive BaseObjectType;
typedef GDriveIface BaseClassType;
private:
friend class Drive_Class;
static CppClassType drive_class_;
// noncopyable
Drive(const Drive&);
Drive& operator=(const Drive&);
protected:
Drive(); // you must derive from this class
/** Called by constructors of derived classes. Provide the result of
* the Class init() function to ensure that it is properly
* initialized.
*
* @param interface_class The Class object for the derived type.
*/
explicit Drive(const Glib::Interface_Class& interface_class);
public:
// This is public so that C++ wrapper instances can be
// created for C instances of unwrapped types.
// For instance, if an unexpected C type implements the C interface.
explicit Drive(GDrive* castitem);
protected:
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
public:
virtual ~Drive();
static void add_interface(GType gtype_implementer);
#ifndef DOXYGEN_SHOULD_SKIP_THIS
static GType get_type() G_GNUC_CONST;
static GType get_base_type() G_GNUC_CONST;
#endif
///Provides access to the underlying C GObject.
GDrive* gobj() { return reinterpret_cast<GDrive*>(gobject_); }
///Provides access to the underlying C GObject.
const GDrive* gobj() const { return reinterpret_cast<GDrive*>(gobject_); }
private:
public:
/** Gets the name of @a drive.
* @return A string containing @a drive's name. The returned
* string should be freed when no longer needed.
*/
Glib::ustring get_name() const;
/** Gets the icon for @a drive.
* @return Icon for the @a drive.
*/
Glib::RefPtr<Icon> get_icon();
/** Gets the icon for @a drive.
* @return Icon for the @a drive.
*/
Glib::RefPtr<const Icon> get_icon() const;
/** Check if @a drive has any mountable volumes.
* @return <tt>true</tt> if the @a drive contains volumes, <tt>false</tt> otherwise.
*/
bool has_volumes() const;
/** Get a list of mountable volumes for @a drive.
*
* The returned list should be freed with Glib::list_free(), after
* its elements have been unreffed with Glib::object_unref().
* @return List containing any Volume&lt;!----&gt;s on the given @a drive.
*/
Glib::ListHandle< Glib::RefPtr<Volume> > get_volumes();
/** Checks if the @a drive supports removable media.
* @return <tt>true</tt> if @a drive supports removable media, <tt>false</tt> otherwise.
*/
bool is_media_removable() const;
/** Checks if the @a drive has media. Note that the OS may not be polling
* the drive for media changes; see g_drive_is_media_check_automatic()
* for more details.
* @return <tt>true</tt> if @a drive has media, <tt>false</tt> otherwise.
*/
bool has_media() const;
/** Checks if @a drive is capabable of automatically detecting media changes.
* @return <tt>true</tt> if the @a drive is capabable of automatically detecting media changes, <tt>false</tt> otherwise.
*/
bool is_media_check_automatic() const;
/** Checks if a drive can be polled for media changes.
* @return <tt>true</tt> if the @a drive can be polled for media changes. <tt>false</tt> otherwise.
*/
bool can_poll_for_media() const;
/** Checks if a drive can be ejected.
* @return <tt>true</tt> if the @a drive can be ejected. <tt>false</tt> otherwise.
*/
bool can_eject() const;
/** Ejects the drive.
* @param slot A callback which will be called when the eject is completed or canceled.
* @param flags Flags affecting the unmount if required for eject.
* @param cancellable A cancellable object which can be used to cancel the eject.
*/
void eject(const SlotAsyncReady& slot, const Glib::RefPtr<Cancellable>& cancellable, MountUnmountFlags flags = MOUNT_UNMOUNT_NONE);
/** Ejects the drive.
* @param slot A callback which will be called when the eject is completed.
* @param flags Flags affecting the unmount if required for eject.
*/
void eject(const SlotAsyncReady& slot, MountUnmountFlags flags = MOUNT_UNMOUNT_NONE);
/** Ejects the drive.
* @param slot A callback which will be called when the eject is completed.
* @param flags Flags affecting the unmount if required for eject.
*/
void eject(MountUnmountFlags flags = MOUNT_UNMOUNT_NONE);
/** Finishes ejecting a drive.
* @param result A AsyncResult.
* @return <tt>true</tt> if the drive has been ejected successfully,
* <tt>false</tt> otherwise.
*/
#ifdef GLIBMM_EXCEPTIONS_ENABLED
bool eject_finish(const Glib::RefPtr<AsyncResult>& result);
#else
bool eject_finish(const Glib::RefPtr<AsyncResult>& result, std::auto_ptr<Glib::Error>& error);
#endif //GLIBMM_EXCEPTIONS_ENABLED
/** Polls drive to see if media has been inserted or removed.
* @param slot A callback which will be called when the poll is completed.
* @param cancellable A cancellable object which can be used to cancel the operation.
*/
void poll_for_media(const SlotAsyncReady& slot, const Glib::RefPtr<Cancellable>& cancellable);
/** Polls drive to see if media has been inserted or removed.
* @param slot A callback which will be called when the poll is completed.
*/
void poll_for_media(const SlotAsyncReady& slot);
/** Polls drive to see if media has been inserted or removed.
*/
void poll_for_media();
/** Finishes poll_for_mediaing a drive.
* @param result A AsyncResult.
* @return <tt>true</tt> if the drive has been poll_for_mediaed successfully,
* <tt>false</tt> otherwise.
*/
#ifdef GLIBMM_EXCEPTIONS_ENABLED
bool poll_for_media_finish(const Glib::RefPtr<AsyncResult>& result);
#else
bool poll_for_media_finish(const Glib::RefPtr<AsyncResult>& result, std::auto_ptr<Glib::Error>& error);
#endif //GLIBMM_EXCEPTIONS_ENABLED
/** Gets the identifier of the given kind for @a drive.
* @param kind The kind of identifier to return.
* @return A newly allocated string containing the
* requested identfier, or <tt>0</tt> if the Drive
* doesn't have this kind of identifier.
*/
std::string get_identifier(const std::string& kind) const;
/** Gets the kinds of identifiers that @a drive has.
* Use Glib::drive_get_identifer() to obtain the identifiers
* themselves.
* @return A <tt>0</tt>-terminated array of strings containing
* kinds of identifiers. Use Glib::strfreev() to free.
*/
Glib::StringArrayHandle enumerate_identifiers() const;
//_WRAP_VFUNC(Glib::ustring get_name() const, get_name)
//Careful of ref-counting: //_WRAP_VFUNC(Glib::RefPtr<Icon> get_icon() const, get_icon)
//_WRAP_VFUNC(bool has_volumes() const, has_volumes)
public:
public:
//C++ methods used to invoke GTK+ virtual functions:
#ifdef GLIBMM_VFUNCS_ENABLED
#endif //GLIBMM_VFUNCS_ENABLED
protected:
//GTK+ Virtual Functions (override these to change behaviour):
#ifdef GLIBMM_VFUNCS_ENABLED
#endif //GLIBMM_VFUNCS_ENABLED
//Default Signal Handlers::
#ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
#endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
};
} // namespace Gio
namespace Glib
{
//Pre-declare this so we can use it in TypeTrait:
Glib::RefPtr<Gio::Drive> wrap(GDrive* object, bool take_copy);
namespace Container_Helpers
{
/** This specialization of TypeTraits exists
* because the default use of Glib::wrap(GObject*),
* instead of a specific Glib::wrap(GSomeInterface*),
* would not return a wrapper for an interface.
*/
template <>
struct TypeTraits< Glib::RefPtr<Gio::Drive> >
{
typedef Glib::RefPtr<Gio::Drive> CppType;
typedef GDrive* CType;
typedef GDrive* CTypeNonConst;
static CType to_c_type (const CppType& item)
{ return Glib::unwrap (item); }
static CppType to_cpp_type (const CType& item)
{
//Use a specific Glib::wrap() function,
//because CType has the specific type (not just GObject):
return Glib::wrap(item, true /* take_copy */);
}
static void release_c_type (CType item)
{
GLIBMM_DEBUG_UNREFERENCE(0, item);
g_object_unref(item);
}
};
} // Container_Helpers
} // Glib
namespace Glib
{
/** A Glib::wrap() method for this object.
*
* @param object The C instance.
* @param take_copy False if the result should take ownership of the C instance. True if it should take a new copy or ref.
* @result A C++ instance that wraps this C instance.
*
* @relates Gio::Drive
*/
Glib::RefPtr<Gio::Drive> wrap(GDrive* object, bool take_copy = false);
} // namespace Glib
#endif /* _GIOMM_DRIVE_H */

View File

@@ -0,0 +1,31 @@
// Generated by gtkmmproc -- DO NOT MODIFY!
#include <giomm/enums.h>
#include <giomm/private/enums_p.h>
// -*- Mode: C++; indent-tabs-mode: nil; c-basic-offset: 2 -*-
/* Copyright (C) 2007 The gtkmm Development Team
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
namespace
{
} // anonymous namespace

View File

@@ -0,0 +1,63 @@
// -*- c++ -*-
// Generated by gtkmmproc -- DO NOT MODIFY!
#ifndef _GIOMM_ENUMS_H
#define _GIOMM_ENUMS_H
#include <glibmm.h>
// -*- Mode: C++; indent-tabs-mode: nil; c-basic-offset: 2 -*-
/* Copyright (C) 2007 The gtkmm Development Team
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#include <gio/gio.h>
namespace Gio
{
/** @addtogroup giommEnums Enums and Flags */
/**
* @ingroup giommEnums
*/
enum DataStreamByteOrder
{
DATA_STREAM_BYTE_ORDER_BIG_ENDIAN,
DATA_STREAM_BYTE_ORDER_LITTLE_ENDIAN,
DATA_STREAM_BYTE_ORDER_HOST_ENDIAN
};
/**
* @ingroup giommEnums
*/
enum DataStreamNewlineType
{
DATA_STREAM_NEWLINE_TYPE_LF,
DATA_STREAM_NEWLINE_TYPE_CR,
DATA_STREAM_NEWLINE_TYPE_CR_LF,
DATA_STREAM_NEWLINE_TYPE_ANY
};
} // namespace Gio
#endif /* _GIOMM_ENUMS_H */

View File

@@ -0,0 +1,66 @@
// Generated by gtkmmproc -- DO NOT MODIFY!
#include <giomm/error.h>
#include <giomm/private/error_p.h>
// -*- Mode: C++; indent-tabs-mode: nil; c-basic-offset: 2 -*-
/* Copyright (C) 2007 The giomm Development Team
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#include <gio/gio.h>
namespace Gio
{
} // namespace Gio
namespace
{
} // anonymous namespace
Gio::Error::Error(Gio::Error::Code error_code, const Glib::ustring& error_message)
:
Glib::Error (G_IO_ERROR, error_code, error_message)
{}
Gio::Error::Error(GError* gobject)
:
Glib::Error (gobject)
{}
Gio::Error::Code Gio::Error::code() const
{
return static_cast<Code>(Glib::Error::code());
}
#ifdef GLIBMM_EXCEPTIONS_ENABLED
void Gio::Error::throw_func(GError* gobject)
{
throw Gio::Error(gobject);
}
#else
//When not using exceptions, we just pass the Exception object around without throwing it:
std::auto_ptr<Glib::Error> Gio::Error::throw_func(GError* gobject)
{
return std::auto_ptr<Glib::Error>(new Gio::Error(gobject));
}
#endif //GLIBMM_EXCEPTIONS_ENABLED

View File

@@ -0,0 +1,117 @@
// -*- c++ -*-
// Generated by gtkmmproc -- DO NOT MODIFY!
#ifndef _GIOMM_ERROR_H
#define _GIOMM_ERROR_H
#include <glibmm.h>
// -*- Mode: C++; indent-tabs-mode: nil; c-basic-offset: 2 -*-
/* Copyright (C) 2007 The giomm Development Team
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#include <glibmm/interface.h>
// There have been issues with other libraries defining HOST_NOT_FOUND (e.g.
// netdb.h). As a workaround, we added the alternate name HOST_WAS_NOT_FOUND.
// Portable code should not use HOST_NOT_FOUND. Undefining it here (and
// restoring it below) will allow programs to compile even if they include
// netdb.h. See Bug #529496
#ifdef HOST_NOT_FOUND
#define GIOMM_SAVED_HOST_NOT_FOUND HOST_NOT_FOUND
#undef HOST_NOT_FOUND
#endif // HOST_NOT_FOUND
namespace Gio
{
//Note that GIOErrorEnum is not named GIOError in gio because there is already a GIOError in glib,
//But we can have both Glib::Error and Gio::Error in C++.
/** Exception class for giomm errors.
*/
class Error : public Glib::Error
{
public:
enum Code
{
FAILED,
NOT_FOUND,
EXISTS,
IS_DIRECTORY,
NOT_DIRECTORY,
NOT_EMPTY,
NOT_REGULAR_FILE,
NOT_SYMBOLIC_LINK,
NOT_MOUNTABLE_FILE,
FILENAME_TOO_LONG,
INVALID_FILENAME,
TOO_MANY_LINKS,
NO_SPACE,
INVALID_ARGUMENT,
PERMISSION_DENIED,
NOT_SUPPORTED,
NOT_MOUNTED,
ALREADY_MOUNTED,
CLOSED,
CANCELLED,
PENDING,
READ_ONLY,
CANT_CREATE_BACKUP,
WRONG_ETAG,
TIMED_OUT,
WOULD_RECURSE,
BUSY,
WOULD_BLOCK,
HOST_NOT_FOUND,
HOST_WAS_NOT_FOUND = HOST_NOT_FOUND,
WOULD_MERGE,
FAILED_HANDLED
};
Error(Code error_code, const Glib::ustring& error_message);
explicit Error(GError* gobject);
Code code() const;
#ifndef DOXYGEN_SHOULD_SKIP_THIS
private:
#ifdef GLIBMM_EXCEPTIONS_ENABLED
static void throw_func(GError* gobject);
#else
//When not using exceptions, we just pass the Exception object around without throwing it:
static std::auto_ptr<Glib::Error> throw_func(GError* gobject);
#endif //GLIBMM_EXCEPTIONS_ENABLED
friend void wrap_init(); // uses throw_func()
#endif
};
} // namespace Gio
#ifdef GIOMM_SAVED_HOST_NOT_FOUND
// restore the previously-defined HOST_NOT_FOUND macro
#define HOST_NOT_FOUND GIOMM_SAVED_HOST_NOT_FOUND
#undef GIOMM_SAVED_HOST_NOT_FOUND
#endif // GIOMM_SAVED_HOST_NOT_FOUND
#endif /* _GIOMM_ERROR_H */

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,89 @@
// Generated by gtkmmproc -- DO NOT MODIFY!
#include <giomm/fileattributeinfo.h>
#include <giomm/private/fileattributeinfo_p.h>
// -*- Mode: C++; indent-tabs-mode: nil; c-basic-offset: 2 -*-
/* Copyright (C) 2007 The gtkmm Development Team
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#include <gio/gio.h>
namespace Gio
{
FileAttributeInfo::FileAttributeInfo(const GFileAttributeInfo* ginfo)
:
m_name(ginfo->name ? ginfo->name : ""),
m_type(static_cast<FileAttributeType>(ginfo->type)),
m_flags(static_cast<FileAttributeInfoFlags>(ginfo->flags))
{
}
FileAttributeInfo::FileAttributeInfo(const FileAttributeInfo& other)
{
*this = other;
}
FileAttributeInfo&
FileAttributeInfo::operator=(const FileAttributeInfo& other)
{
m_name = other.m_name;
m_type = other.m_type;
m_flags = other.m_flags;
return *this;
}
FileAttributeInfo::~FileAttributeInfo()
{
}
std::string
FileAttributeInfo::get_name() const
{
return m_name;
}
FileAttributeType
FileAttributeInfo::get_type() const
{
return m_type;
}
FileAttributeInfoFlags
FileAttributeInfo::get_flags() const
{
return m_flags;
}
} // namespace Gio
namespace
{
} // anonymous namespace
namespace Gio
{
} // namespace Gio

View File

@@ -0,0 +1,153 @@
// -*- c++ -*-
// Generated by gtkmmproc -- DO NOT MODIFY!
#ifndef _GIOMM_FILEATTRIBUTEINFO_H
#define _GIOMM_FILEATTRIBUTEINFO_H
#include <glibmm.h>
// -*- Mode: C++; indent-tabs-mode: nil; c-basic-offset: 2 -*-
/* Copyright (C) 2007 The gtkmm Development Team
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#include <string>
#include <gio/gio.h> //TODO: avoid this include
#include <glibmm/object.h>
namespace Gio
{
//TODO: Fix the need for NO_GTYPE.
//It guesses gfile_attribute_type_get_type() instead of g_file_attribute_type_get_type(). murrayc.
/** @addtogroup giommEnums Enums and Flags */
/**
* @ingroup giommEnums
*/
enum FileAttributeType
{
FILE_ATTRIBUTE_TYPE_INVALID,
FILE_ATTRIBUTE_TYPE_STRING,
FILE_ATTRIBUTE_TYPE_BYTE_STRING,
FILE_ATTRIBUTE_TYPE_BOOLEAN,
FILE_ATTRIBUTE_TYPE_UINT32,
FILE_ATTRIBUTE_TYPE_INT32,
FILE_ATTRIBUTE_TYPE_UINT64,
FILE_ATTRIBUTE_TYPE_INT64,
FILE_ATTRIBUTE_TYPE_OBJECT
};
/**
* @ingroup giommEnums
* @par Bitwise operators:
* <tt>%FileAttributeInfoFlags operator|(FileAttributeInfoFlags, FileAttributeInfoFlags)</tt><br>
* <tt>%FileAttributeInfoFlags operator&(FileAttributeInfoFlags, FileAttributeInfoFlags)</tt><br>
* <tt>%FileAttributeInfoFlags operator^(FileAttributeInfoFlags, FileAttributeInfoFlags)</tt><br>
* <tt>%FileAttributeInfoFlags operator~(FileAttributeInfoFlags)</tt><br>
* <tt>%FileAttributeInfoFlags& operator|=(FileAttributeInfoFlags&, FileAttributeInfoFlags)</tt><br>
* <tt>%FileAttributeInfoFlags& operator&=(FileAttributeInfoFlags&, FileAttributeInfoFlags)</tt><br>
* <tt>%FileAttributeInfoFlags& operator^=(FileAttributeInfoFlags&, FileAttributeInfoFlags)</tt><br>
*/
enum FileAttributeInfoFlags
{
FILE_ATTRIBUTE_INFO_NONE = 0,
FILE_ATTRIBUTE_INFO_COPY_WITH_FILE = 1 << 0,
FILE_ATTRIBUTE_INFO_COPY_WHEN_MOVED = 1 << 1
};
/** @ingroup giommEnums */
inline FileAttributeInfoFlags operator|(FileAttributeInfoFlags lhs, FileAttributeInfoFlags rhs)
{ return static_cast<FileAttributeInfoFlags>(static_cast<unsigned>(lhs) | static_cast<unsigned>(rhs)); }
/** @ingroup giommEnums */
inline FileAttributeInfoFlags operator&(FileAttributeInfoFlags lhs, FileAttributeInfoFlags rhs)
{ return static_cast<FileAttributeInfoFlags>(static_cast<unsigned>(lhs) & static_cast<unsigned>(rhs)); }
/** @ingroup giommEnums */
inline FileAttributeInfoFlags operator^(FileAttributeInfoFlags lhs, FileAttributeInfoFlags rhs)
{ return static_cast<FileAttributeInfoFlags>(static_cast<unsigned>(lhs) ^ static_cast<unsigned>(rhs)); }
/** @ingroup giommEnums */
inline FileAttributeInfoFlags operator~(FileAttributeInfoFlags flags)
{ return static_cast<FileAttributeInfoFlags>(~static_cast<unsigned>(flags)); }
/** @ingroup giommEnums */
inline FileAttributeInfoFlags& operator|=(FileAttributeInfoFlags& lhs, FileAttributeInfoFlags rhs)
{ return (lhs = static_cast<FileAttributeInfoFlags>(static_cast<unsigned>(lhs) | static_cast<unsigned>(rhs))); }
/** @ingroup giommEnums */
inline FileAttributeInfoFlags& operator&=(FileAttributeInfoFlags& lhs, FileAttributeInfoFlags rhs)
{ return (lhs = static_cast<FileAttributeInfoFlags>(static_cast<unsigned>(lhs) & static_cast<unsigned>(rhs))); }
/** @ingroup giommEnums */
inline FileAttributeInfoFlags& operator^=(FileAttributeInfoFlags& lhs, FileAttributeInfoFlags rhs)
{ return (lhs = static_cast<FileAttributeInfoFlags>(static_cast<unsigned>(lhs) ^ static_cast<unsigned>(rhs))); }
/**
* @ingroup giommEnums
*/
enum FileAttributeStatus
{
FILE_ATTRIBUTE_STATUS_UNSET,
FILE_ATTRIBUTE_STATUS_SET,
FILE_ATTRIBUTE_STATUS_ERROR_SETTING
};
/** Information about a specific attribute - see FileAttributeInfoList.
*
* @newin2p16
*/
class FileAttributeInfo
{
public:
#ifndef DOXYGEN_SHOULD_SKIP_THIS
typedef FileAttributeInfo CppObjectType;
typedef GFileAttributeInfo BaseObjectType;
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
private:
public:
explicit FileAttributeInfo(const GFileAttributeInfo* ginfo);
FileAttributeInfo(const FileAttributeInfo& other);
FileAttributeInfo& operator=(const FileAttributeInfo& other);
~FileAttributeInfo();
std::string get_name() const;
FileAttributeType get_type() const;
FileAttributeInfoFlags get_flags() const;
protected:
std::string m_name;
FileAttributeType m_type;
FileAttributeInfoFlags m_flags;
};
} // namespace Gio
#endif /* _GIOMM_FILEATTRIBUTEINFO_H */

View File

@@ -0,0 +1,145 @@
// Generated by gtkmmproc -- DO NOT MODIFY!
#include <giomm/fileattributeinfolist.h>
#include <giomm/private/fileattributeinfolist_p.h>
// -*- Mode: C++; indent-tabs-mode: nil; c-basic-offset: 2 -*-
/* Copyright (C) 2007 The gtkmm Development Team
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#include <gio/gio.h>
namespace Gio
{
FileAttributeInfoList::operator bool() const
{
return !empty();
}
bool FileAttributeInfoList::empty() const
{
return gobj() == 0;
}
FileAttributeInfo
FileAttributeInfoList::lookup(const std::string& name) const
{
GFileAttributeInfoList* cobject = const_cast<GFileAttributeInfoList*>(gobj());
const GFileAttributeInfo* cinfo =
g_file_attribute_info_list_lookup (cobject, name.c_str());
FileAttributeInfo info(cinfo);
return info;
}
} // namespace Gio
namespace
{
} // anonymous namespace
/* Why reinterpret_cast<FileAttributeInfoList*>(gobject) is needed:
*
* A FileAttributeInfoList instance is in fact always a GFileAttributeInfoList instance.
* Unfortunately, GFileAttributeInfoList cannot be a member of FileAttributeInfoList,
* because it is an opaque struct. Also, the C interface does not provide
* any hooks to install a destroy notification handler, thus we cannot
* wrap it dynamically either.
*
* The cast works because FileAttributeInfoList does not have any member data, and
* it is impossible to derive from it. This is ensured by not implementing
* the (protected) default constructor. The ctor is protected rather than
* private just to avoid a compile warning.
*/
namespace Glib
{
Glib::RefPtr<Gio::FileAttributeInfoList> wrap(GFileAttributeInfoList* object, bool take_copy)
{
if(take_copy && object)
g_file_attribute_info_list_ref(object);
// See the comment at the top of this file, if you want to know why the cast works.
return Glib::RefPtr<Gio::FileAttributeInfoList>(reinterpret_cast<Gio::FileAttributeInfoList*>(object));
}
} // namespace Glib
namespace Gio
{
// static
Glib::RefPtr<FileAttributeInfoList> FileAttributeInfoList::create()
{
// See the comment at the top of this file, if you want to know why the cast works.
return Glib::RefPtr<FileAttributeInfoList>(reinterpret_cast<FileAttributeInfoList*>(g_file_attribute_info_list_new()));
}
void FileAttributeInfoList::reference() const
{
// See the comment at the top of this file, if you want to know why the cast works.
g_file_attribute_info_list_ref(reinterpret_cast<GFileAttributeInfoList*>(const_cast<FileAttributeInfoList*>(this)));
}
void FileAttributeInfoList::unreference() const
{
// See the comment at the top of this file, if you want to know why the cast works.
g_file_attribute_info_list_unref(reinterpret_cast<GFileAttributeInfoList*>(const_cast<FileAttributeInfoList*>(this)));
}
GFileAttributeInfoList* FileAttributeInfoList::gobj()
{
// See the comment at the top of this file, if you want to know why the cast works.
return reinterpret_cast<GFileAttributeInfoList*>(this);
}
const GFileAttributeInfoList* FileAttributeInfoList::gobj() const
{
// See the comment at the top of this file, if you want to know why the cast works.
return reinterpret_cast<const GFileAttributeInfoList*>(this);
}
GFileAttributeInfoList* FileAttributeInfoList::gobj_copy() const
{
// See the comment at the top of this file, if you want to know why the cast works.
GFileAttributeInfoList *const gobject = reinterpret_cast<GFileAttributeInfoList*>(const_cast<FileAttributeInfoList*>(this));
g_file_attribute_info_list_ref(gobject);
return gobject;
}
Glib::RefPtr<FileAttributeInfoList> FileAttributeInfoList::dup() const
{
return Glib::wrap(g_file_attribute_info_list_dup(const_cast<GFileAttributeInfoList*>(gobj())));
}
void FileAttributeInfoList::add(const std::string& name, FileAttributeType type, FileAttributeInfoFlags flags)
{
g_file_attribute_info_list_add(gobj(), name.c_str(), ((GFileAttributeType)(type)), ((GFileAttributeInfoFlags)(flags)));
}
} // namespace Gio

View File

@@ -0,0 +1,145 @@
// -*- c++ -*-
// Generated by gtkmmproc -- DO NOT MODIFY!
#ifndef _GIOMM_FILEATTRIBUTEINFOLIST_H
#define _GIOMM_FILEATTRIBUTEINFOLIST_H
#include <glibmm.h>
// -*- Mode: C++; indent-tabs-mode: nil; c-basic-offset: 2 -*-
/* Copyright (C) 2007 The gtkmm Development Team
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#include <giomm/fileattributeinfo.h>
namespace Gio
{
/** Key-Value paired file attributes.
* File attributes in GIO consist of a list of key-value pairs.
*
* Keys are strings that contain a key namespace and a key name, separated by a colon, e.g. "namespace:keyname".
* Namespaces are included to sort key-value pairs by namespaces for relevance. Keys can be retreived using wildcards,
* e.g. "standard::*" will return all of the keys in the "standard" namespace.
*
* Values are stored within the list in Gio::FileAttributeValue structures. Values can store different types, listed in the enum
* Gio::FileAttributeType. Upon creation of a Gio::FileAttributeValue, the type will be set to Gio::FILE_ATTRIBUTE_TYPE_INVALID.
*
* The list of possible attributes for a filesystem (pointed to by a Gio::File) is availible as a Gio::FileAttributeInfoList.
* This list is queryable by key names as indicated earlier.
*
* Classes that implement Gio::FileIface will create a Gio::FileAttributeInfoList and install default keys and values for their given file
* system, architecture, and other possible implementation details (e.g., on a UNIX system, a file attribute key will be registered for
* the user id for a given file).
*
* See http://library.gnome.org/devel/gio/unstable/gio-GFileAttribute.html for the list of default namespaces and the list of default keys.
*
* @newin2p16
*/
class FileAttributeInfoList
{
public:
#ifndef DOXYGEN_SHOULD_SKIP_THIS
typedef FileAttributeInfoList CppObjectType;
typedef GFileAttributeInfoList BaseObjectType;
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
static Glib::RefPtr<FileAttributeInfoList> create();
// For use with Glib::RefPtr<> only.
void reference() const;
void unreference() const;
///Provides access to the underlying C instance.
GFileAttributeInfoList* gobj();
///Provides access to the underlying C instance.
const GFileAttributeInfoList* gobj() const;
///Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
GFileAttributeInfoList* gobj_copy() const;
protected:
// Do not derive this. Gio::FileAttributeInfoList can neither be constructed nor deleted.
FileAttributeInfoList();
void operator delete(void*, size_t);
private:
// noncopyable
FileAttributeInfoList(const FileAttributeInfoList&);
FileAttributeInfoList& operator=(const FileAttributeInfoList&);
public:
/** Whether the FileAttributeInfoList is valid and non empty.
* @result true if this FileAttributeInfoList is not empty.
*/
operator bool() const;
/** Whether the FileAttributeInfoList is empty or invalid.
* @result true if this FileAttributeInfoList is empty.
*/
bool empty() const;
/** Gets the file attribute with the name name from list.
* @param name The name of the attribute to lookup.
* @result A FileAttributeInfo for the name.
*/
FileAttributeInfo lookup(const std::string& name) const;
/** Makes a duplicate of a file attribute info list.
* @return A copy of the given @a list.
*/
Glib::RefPtr<FileAttributeInfoList> dup() const;
/** Adds a new attribute with @a name to the @a list, setting
* its @a type and @a flags.
* @param name The name of the attribute to add.
* @param type The FileAttributeType for the attribute.
* @param flags FileAttributeInfoFlags for the attribute.
*/
void add(const std::string& name, FileAttributeType type, FileAttributeInfoFlags flags = FILE_ATTRIBUTE_INFO_NONE);
};
} // namespace Gio
namespace Glib
{
/** A Glib::wrap() method for this object.
*
* @param object The C instance.
* @param take_copy False if the result should take ownership of the C instance. True if it should take a new copy or ref.
* @result A C++ instance that wraps this C instance.
*
* @relates Gio::FileAttributeInfoList
*/
Glib::RefPtr<Gio::FileAttributeInfoList> wrap(GFileAttributeInfoList* object, bool take_copy = false);
} // namespace Glib
#endif /* _GIOMM_FILEATTRIBUTEINFOLIST_H */

View File

@@ -0,0 +1,372 @@
// Generated by gtkmmproc -- DO NOT MODIFY!
#include <giomm/fileenumerator.h>
#include <giomm/private/fileenumerator_p.h>
// -*- Mode: C++; indent-tabs-mode: nil; c-basic-offset: 2 -*-
/* Copyright (C) 2007 The gtkmm Development Team
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#include <gio/gio.h>
#include <giomm/file.h>
#include <glibmm/error.h>
#include <glibmm/exceptionhandler.h>
#include "slot_async.h"
namespace Gio
{
void
FileEnumerator::next_files_async(const SlotAsyncReady& slot, const Glib::RefPtr<Cancellable>& cancellable, int num_files, int io_priority)
{
// 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_enumerator_next_files_async(gobj(),
num_files,
io_priority,
cancellable->gobj(),
&SignalProxy_async_callback,
slot_copy);
}
void
FileEnumerator::next_files_async(const SlotAsyncReady& slot, int num_files, int io_priority)
{
// 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_enumerator_next_files_async(gobj(),
num_files,
io_priority,
NULL, // cancellable
&SignalProxy_async_callback,
slot_copy);
}
void
FileEnumerator::close_async(int io_priority,
const Glib::RefPtr<Cancellable>& cancellable,
const SlotAsyncReady& slot)
{
// 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_enumerator_close_async(gobj(),
io_priority,
cancellable->gobj(),
&SignalProxy_async_callback,
slot_copy);
}
void
FileEnumerator::close_async(int io_priority,
const SlotAsyncReady& slot)
{
// 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_enumerator_close_async(gobj(),
io_priority,
NULL, // cancellable
&SignalProxy_async_callback,
slot_copy);
}
#ifdef GLIBMM_EXCEPTIONS_ENABLED
Glib::RefPtr<FileInfo> FileEnumerator::next_file()
#else
Glib::RefPtr<FileInfo> FileEnumerator::next_file(std::auto_ptr<Glib::Error>& error)
#endif //GLIBMM_EXCEPTIONS_ENABLED
{
GError* gerror = 0;
Glib::RefPtr<FileInfo> retvalue = Glib::wrap(g_file_enumerator_next_file(gobj(), NULL, &(gerror)));
#ifdef GLIBMM_EXCEPTIONS_ENABLED
if(gerror)
::Glib::Error::throw_exception(gerror);
#else
if(gerror)
error = ::Glib::Error::throw_exception(gerror);
#endif //GLIBMM_EXCEPTIONS_ENABLED
return retvalue;
}
#ifdef GLIBMM_EXCEPTIONS_ENABLED
bool FileEnumerator::close()
#else
bool FileEnumerator::close(std::auto_ptr<Glib::Error>& error)
#endif //GLIBMM_EXCEPTIONS_ENABLED
{
GError* gerror = 0;
bool retvalue = g_file_enumerator_close(gobj(), NULL, &(gerror));
#ifdef GLIBMM_EXCEPTIONS_ENABLED
if(gerror)
::Glib::Error::throw_exception(gerror);
#else
if(gerror)
error = ::Glib::Error::throw_exception(gerror);
#endif //GLIBMM_EXCEPTIONS_ENABLED
return retvalue;
}
} // namespace Gio
namespace
{
} // anonymous namespace
namespace Glib
{
Glib::RefPtr<Gio::FileEnumerator> wrap(GFileEnumerator* object, bool take_copy)
{
return Glib::RefPtr<Gio::FileEnumerator>( dynamic_cast<Gio::FileEnumerator*> (Glib::wrap_auto ((GObject*)(object), take_copy)) );
//We use dynamic_cast<> in case of multiple inheritance.
}
} /* namespace Glib */
namespace Gio
{
/* The *_Class implementation: */
const Glib::Class& FileEnumerator_Class::init()
{
if(!gtype_) // create the GType if necessary
{
// Glib::Class has to know the class init function to clone custom types.
class_init_func_ = &FileEnumerator_Class::class_init_function;
// This is actually just optimized away, apparently with no harm.
// Make sure that the parent type has been created.
//CppClassParent::CppObjectType::get_type();
// Create the wrapper type, with the same class/instance size as the base type.
register_derived_type(g_file_enumerator_get_type());
// Add derived versions of interfaces, if the C type implements any interfaces:
}
return *this;
}
void FileEnumerator_Class::class_init_function(void* g_class, void* class_data)
{
BaseClassType *const klass = static_cast<BaseClassType*>(g_class);
CppClassParent::class_init_function(klass, class_data);
#ifdef GLIBMM_VFUNCS_ENABLED
#endif //GLIBMM_VFUNCS_ENABLED
#ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
#endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
}
#ifdef GLIBMM_VFUNCS_ENABLED
#endif //GLIBMM_VFUNCS_ENABLED
#ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
#endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
Glib::ObjectBase* FileEnumerator_Class::wrap_new(GObject* object)
{
return new FileEnumerator((GFileEnumerator*)object);
}
/* The implementation: */
GFileEnumerator* FileEnumerator::gobj_copy()
{
reference();
return gobj();
}
FileEnumerator::FileEnumerator(const Glib::ConstructParams& construct_params)
:
Glib::Object(construct_params)
{
}
FileEnumerator::FileEnumerator(GFileEnumerator* castitem)
:
Glib::Object((GObject*)(castitem))
{}
FileEnumerator::~FileEnumerator()
{}
FileEnumerator::CppClassType FileEnumerator::fileenumerator_class_; // initialize static member
GType FileEnumerator::get_type()
{
return fileenumerator_class_.init().get_type();
}
GType FileEnumerator::get_base_type()
{
return g_file_enumerator_get_type();
}
#ifdef GLIBMM_EXCEPTIONS_ENABLED
Glib::RefPtr<FileInfo> FileEnumerator::next_file(const Glib::RefPtr<Cancellable>& cancellable)
#else
Glib::RefPtr<FileInfo> FileEnumerator::next_file(const Glib::RefPtr<Cancellable>& cancellable, std::auto_ptr<Glib::Error>& error)
#endif //GLIBMM_EXCEPTIONS_ENABLED
{
GError* gerror = 0;
Glib::RefPtr<FileInfo> retvalue = Glib::wrap(g_file_enumerator_next_file(gobj(), const_cast<GCancellable*>(Glib::unwrap(cancellable)), &(gerror)));
#ifdef GLIBMM_EXCEPTIONS_ENABLED
if(gerror)
::Glib::Error::throw_exception(gerror);
#else
if(gerror)
error = ::Glib::Error::throw_exception(gerror);
#endif //GLIBMM_EXCEPTIONS_ENABLED
return retvalue;
}
#ifdef GLIBMM_EXCEPTIONS_ENABLED
bool FileEnumerator::close(const Glib::RefPtr<Cancellable>& cancellable)
#else
bool FileEnumerator::close(const Glib::RefPtr<Cancellable>& cancellable, std::auto_ptr<Glib::Error>& error)
#endif //GLIBMM_EXCEPTIONS_ENABLED
{
GError* gerror = 0;
bool retvalue = g_file_enumerator_close(gobj(), const_cast<GCancellable*>(Glib::unwrap(cancellable)), &(gerror));
#ifdef GLIBMM_EXCEPTIONS_ENABLED
if(gerror)
::Glib::Error::throw_exception(gerror);
#else
if(gerror)
error = ::Glib::Error::throw_exception(gerror);
#endif //GLIBMM_EXCEPTIONS_ENABLED
return retvalue;
}
#ifdef GLIBMM_EXCEPTIONS_ENABLED
Glib::ListHandle< Glib::RefPtr<FileInfo> > FileEnumerator::next_files_finish(const Glib::RefPtr<AsyncResult>& result)
#else
Glib::ListHandle< Glib::RefPtr<FileInfo> > FileEnumerator::next_files_finish(const Glib::RefPtr<AsyncResult>& result, std::auto_ptr<Glib::Error>& error)
#endif //GLIBMM_EXCEPTIONS_ENABLED
{
GError* gerror = 0;
Glib::ListHandle< Glib::RefPtr<FileInfo> > retvalue = Glib::ListHandle< Glib::RefPtr<FileInfo> >((g_file_enumerator_next_files_finish(gobj(), Glib::unwrap(result), &(gerror))), Glib::OWNERSHIP_DEEP);
#ifdef GLIBMM_EXCEPTIONS_ENABLED
if(gerror)
::Glib::Error::throw_exception(gerror);
#else
if(gerror)
error = ::Glib::Error::throw_exception(gerror);
#endif //GLIBMM_EXCEPTIONS_ENABLED
return retvalue;
}
#ifdef GLIBMM_EXCEPTIONS_ENABLED
bool FileEnumerator::close_finish(const Glib::RefPtr<AsyncResult>& result)
#else
bool FileEnumerator::close_finish(const Glib::RefPtr<AsyncResult>& result, std::auto_ptr<Glib::Error>& error)
#endif //GLIBMM_EXCEPTIONS_ENABLED
{
GError* gerror = 0;
bool retvalue = g_file_enumerator_close_finish(gobj(), Glib::unwrap(result), &(gerror));
#ifdef GLIBMM_EXCEPTIONS_ENABLED
if(gerror)
::Glib::Error::throw_exception(gerror);
#else
if(gerror)
error = ::Glib::Error::throw_exception(gerror);
#endif //GLIBMM_EXCEPTIONS_ENABLED
return retvalue;
}
bool FileEnumerator::is_closed() const
{
return g_file_enumerator_is_closed(const_cast<GFileEnumerator*>(gobj()));
}
bool FileEnumerator::has_pending() const
{
return g_file_enumerator_has_pending(const_cast<GFileEnumerator*>(gobj()));
}
void FileEnumerator::set_pending(bool pending)
{
g_file_enumerator_set_pending(gobj(), static_cast<int>(pending));
}
Glib::RefPtr<File> FileEnumerator::get_container()
{
Glib::RefPtr<File> retvalue = Glib::wrap(g_file_enumerator_get_container(gobj()));
if(retvalue)
retvalue->reference(); //The function does not do a ref for us.
return retvalue;
}
Glib::RefPtr<const File> FileEnumerator::get_container() const
{
Glib::RefPtr<const File> retvalue = Glib::wrap(g_file_enumerator_get_container(const_cast<GFileEnumerator*>(gobj())));
if(retvalue)
retvalue->reference(); //The function does not do a ref for us.
return retvalue;
}
#ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
#endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
#ifdef GLIBMM_VFUNCS_ENABLED
#endif //GLIBMM_VFUNCS_ENABLED
} // namespace Gio

View File

@@ -0,0 +1,314 @@
// -*- c++ -*-
// Generated by gtkmmproc -- DO NOT MODIFY!
#ifndef _GIOMM_FILEENUMERATOR_H
#define _GIOMM_FILEENUMERATOR_H
#include <glibmm.h>
// -*- Mode: C++; indent-tabs-mode: nil; c-basic-offset: 2 -*-
/* Copyright (C) 2007 The glibmm Development Team
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#include <glibmm/object.h>
#include <glibmm/arrayhandle.h>
#include <glibmm/listhandle.h>
#include <giomm/asyncresult.h>
#include <giomm/cancellable.h>
#include <giomm/fileinfo.h>
//#include <giomm/file.h>
#ifndef DOXYGEN_SHOULD_SKIP_THIS
typedef struct _GFileEnumerator GFileEnumerator;
typedef struct _GFileEnumeratorClass GFileEnumeratorClass;
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
namespace Gio
{ class FileEnumerator_Class; } // namespace Gio
namespace Gio
{
class File;
//TODO: Consider wrapping this like a std::iterator (or at least renaming it), though the asyncness probably makes that unsuitable.
/** Enumerated Files Routines.
* FileEnumerator allows you to operate on a set of Gio::Files, returning a Gio::FileInfo instance for each file enumerated
* (e.g. Gio::File::enumerate_children() will return a FileEnumerator for each of the children within a directory).
*
* To get the next file's information from a Gio::FileEnumerator, use next_file() or its asynchronous version, next_file_async().
* Note that the asynchronous version will return a list of Gio::FileInfos, whereas the synchronous version will only return the next
* file in the enumerator.
*
* To close a Gio::FileEnumerator, use FileEnumerator::close(), or its asynchronous version, close_async(). Once a FileEnumerator is closed,
* no further actions may be performed on it.
*
* @newin2p16
*/
class FileEnumerator : public Glib::Object
{
#ifndef DOXYGEN_SHOULD_SKIP_THIS
public:
typedef FileEnumerator CppObjectType;
typedef FileEnumerator_Class CppClassType;
typedef GFileEnumerator BaseObjectType;
typedef GFileEnumeratorClass BaseClassType;
private: friend class FileEnumerator_Class;
static CppClassType fileenumerator_class_;
private:
// noncopyable
FileEnumerator(const FileEnumerator&);
FileEnumerator& operator=(const FileEnumerator&);
protected:
explicit FileEnumerator(const Glib::ConstructParams& construct_params);
explicit FileEnumerator(GFileEnumerator* castitem);
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
public:
virtual ~FileEnumerator();
#ifndef DOXYGEN_SHOULD_SKIP_THIS
static GType get_type() G_GNUC_CONST;
static GType get_base_type() G_GNUC_CONST;
#endif
///Provides access to the underlying C GObject.
GFileEnumerator* gobj() { return reinterpret_cast<GFileEnumerator*>(gobject_); }
///Provides access to the underlying C GObject.
const GFileEnumerator* gobj() const { return reinterpret_cast<GFileEnumerator*>(gobject_); }
///Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
GFileEnumerator* gobj_copy();
private:
public:
/** Return value: A FileInfo or <tt>0</tt> on error or end of enumerator
* @param cancellable Optional Cancellable object, <tt>0</tt> to ignore.
* @return A FileInfo or <tt>0</tt> on error or end of enumerator.
*/
#ifdef GLIBMM_EXCEPTIONS_ENABLED
Glib::RefPtr<FileInfo> next_file(const Glib::RefPtr<Cancellable>& cancellable);
#else
Glib::RefPtr<FileInfo> next_file(const Glib::RefPtr<Cancellable>& cancellable, std::auto_ptr<Glib::Error>& error);
#endif //GLIBMM_EXCEPTIONS_ENABLED
/**
* @return A FileInfo or an empty RefPtr on error or end of enumerator.
*/
#ifdef GLIBMM_EXCEPTIONS_ENABLED
Glib::RefPtr<FileInfo> next_file();
#else
Glib::RefPtr<FileInfo> next_file(std::auto_ptr<Glib::Error>& error);
#endif //GLIBMM_EXCEPTIONS_ENABLED
/** Releases all resources used by this enumerator, making the
* enumerator return IO_ERROR_CLOSED on all calls.
*
* This will be automatically called when the last reference
* is dropped, but you might want to call this function to make
* sure resources are released as early as possible.
* @param cancellable Optional Cancellable object, <tt>0</tt> to ignore.
* @return #<tt>true</tt> on success or #<tt>false</tt> on error.
*/
#ifdef GLIBMM_EXCEPTIONS_ENABLED
bool close(const Glib::RefPtr<Cancellable>& cancellable);
#else
bool close(const Glib::RefPtr<Cancellable>& cancellable, std::auto_ptr<Glib::Error>& error);
#endif //GLIBMM_EXCEPTIONS_ENABLED
/** Releases all resources used by this enumerator, making the
* enumerator throw a Gio::Error with CLOSED on all calls.
*
* This will be automatically called when the last reference
* is dropped, but you might want to call this method to make sure resources
* are released as early as possible.
* @return #<tt>true</tt> on success or an empty RefPtr on error.
*/
#ifdef GLIBMM_EXCEPTIONS_ENABLED
bool close();
#else
bool close(std::auto_ptr<Glib::Error>& error);
#endif //GLIBMM_EXCEPTIONS_ENABLED
/** Request information for a number of files from the enumerator asynchronously.
* When all I/O for the operation is finished the callback slot will be called with the requested information.
*
* The callback could be called with less than num_files files in case of error or at the end of the enumerator.
* In case of a partial error the callback will be called with any succeeding items and no error, and on the next request the error will be reported.
* If a request is cancelled the callback will be called with ERROR_CANCELLED.
*
* During an async request no other sync and async calls are allowed, and will result in ERROR_PENDING errors.
*
* Any outstanding I/O request with higher priority (lower numerical value) will be executed before an outstanding request with lower priority.
* The default priority is PRIORITY_DEFAULT.
* @param slot A callback to call when the request is satisfied.
* @param cancellable An cancellable object which can be used to cancel the request.
* @param num_files The number of file info objects to request.
* @param io_priority The I/O priority of the request.
*/
void next_files_async(const SlotAsyncReady& slot, const Glib::RefPtr<Cancellable>& cancellable, int num_files = 1, int io_priority = Glib::PRIORITY_DEFAULT);
/** Request information for a number of files from the enumerator asynchronously.
* When all I/O for the operation is finished the callback slot will be called with the requested information.
*
* The callback could be called with less than num_files files in case of error or at the end of the enumerator.
* In case of a partial error the callback will be called with any succeeding items and no error, and on the next request the error will be reported.
* If a request is cancelled the callback will be called with ERROR_CANCELLED.
*
* During an async request no other sync and async calls are allowed, and will result in ERROR_PENDING errors.
*
* Any outstanding I/O request with higher priority (lower numerical value) will be executed before an outstanding request with lower priority.
* The default priority is PRIORITY_DEFAULT.
* @param slot A callback to call when the request is satisfied.
* @param num_files The number of file info objects to request.
* @param io_priority The I/O priority of the request.
*/
void next_files_async(const SlotAsyncReady& slot, int num_files = 1, int io_priority = Glib::PRIORITY_DEFAULT);
/** Finishes the asynchronous operation started with g_file_enumerator_next_files_async().
* @param result A AsyncResult.
* @return A List of FileInfo&lt;!----&gt;s. You must free the list with g_list_free
* and unref the infos with g_object_unref when your done with them.
*/
#ifdef GLIBMM_EXCEPTIONS_ENABLED
Glib::ListHandle< Glib::RefPtr<FileInfo> > next_files_finish(const Glib::RefPtr<AsyncResult>& result);
#else
Glib::ListHandle< Glib::RefPtr<FileInfo> > next_files_finish(const Glib::RefPtr<AsyncResult>& result, std::auto_ptr<Glib::Error>& error);
#endif //GLIBMM_EXCEPTIONS_ENABLED
/** Asynchronously closes the file enumerator.
*
* See close(), which is the synchronous version of this function.
*
* The operation can be cancelled by triggering the cancellable object from another thread.
* If the operation was cancelled, a Gio::Error with CANCELLED will be thrown by close_finish().
*
* @param io_priority The I/O priority of the request.
* @param cancellable A Cancellable object which can be used to cancel the operation.
* @param slot A callback to call when the request is satisfied.
*/
void close_async(int io_priority, const Glib::RefPtr<Cancellable>& cancellable, const SlotAsyncReady& slot);
/** Asynchronously closes the file enumerator.
*
* See close(), which is the synchronous version of this function.
*
* @param io_priority The I/O priority of the request.
* @param slot A callback to call when the request is satisfied.
*/
void close_async(int io_priority, const SlotAsyncReady& slot);
/** Finishes closing a file enumerator, started from g_file_enumerator_close_async().
*
* If the file enumerator was already closed when g_file_enumerator_close_async()
* was called, then this function will throw a Gio::Error with CLOSED, and
* return <tt>false</tt>. If the file enumerator had pending operation when the close
* operation was started, then this function will throw a Gio::Error with PENDING, and
* return <tt>false</tt>. The operation may have been
* cancelled by triggering the cancellable object from another thread. If the operation
* was cancelled, a Gio::Error with CANCELLED will be thrown, and <tt>false</tt> will be
* returned.
* @param result A AsyncResult.
* @return <tt>true</tt> if the close operation has finished successfully.
*/
#ifdef GLIBMM_EXCEPTIONS_ENABLED
bool close_finish(const Glib::RefPtr<AsyncResult>& result);
#else
bool close_finish(const Glib::RefPtr<AsyncResult>& result, std::auto_ptr<Glib::Error>& error);
#endif //GLIBMM_EXCEPTIONS_ENABLED
/** Checks if the file enumerator has been closed.
* @return <tt>true</tt> if the @a enumerator is closed.
*/
bool is_closed() const;
/** Checks if the file enumerator has pending operations.
* @return <tt>true</tt> if the @a enumerator has pending operations.
*/
bool has_pending() const;
/** Sets the file enumerator as having pending operations.
* @param pending A boolean value.
*/
void set_pending(bool pending = true);
Glib::RefPtr<File> get_container();
Glib::RefPtr<const File> get_container() const;
public:
public:
//C++ methods used to invoke GTK+ virtual functions:
#ifdef GLIBMM_VFUNCS_ENABLED
#endif //GLIBMM_VFUNCS_ENABLED
protected:
//GTK+ Virtual Functions (override these to change behaviour):
#ifdef GLIBMM_VFUNCS_ENABLED
#endif //GLIBMM_VFUNCS_ENABLED
//Default Signal Handlers::
#ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
#endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
};
} // namespace Gio
namespace Glib
{
/** A Glib::wrap() method for this object.
*
* @param object The C instance.
* @param take_copy False if the result should take ownership of the C instance. True if it should take a new copy or ref.
* @result A C++ instance that wraps this C instance.
*
* @relates Gio::FileEnumerator
*/
Glib::RefPtr<Gio::FileEnumerator> wrap(GFileEnumerator* object, bool take_copy = false);
}
#endif /* _GIOMM_FILEENUMERATOR_H */

View File

@@ -0,0 +1,176 @@
// Generated by gtkmmproc -- DO NOT MODIFY!
#include <giomm/fileicon.h>
#include <giomm/private/fileicon_p.h>
// -*- Mode: C++; indent-tabs-mode: nil; c-basic-offset: 2 -*-
/* Copyright (C) 2007 The gtkmm Development Team
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#include <gio/gio.h>
namespace
{
} // anonymous namespace
namespace Glib
{
Glib::RefPtr<Gio::FileIcon> wrap(GFileIcon* object, bool take_copy)
{
return Glib::RefPtr<Gio::FileIcon>( dynamic_cast<Gio::FileIcon*> (Glib::wrap_auto ((GObject*)(object), take_copy)) );
//We use dynamic_cast<> in case of multiple inheritance.
}
} /* namespace Glib */
namespace Gio
{
/* The *_Class implementation: */
const Glib::Class& FileIcon_Class::init()
{
if(!gtype_) // create the GType if necessary
{
// Glib::Class has to know the class init function to clone custom types.
class_init_func_ = &FileIcon_Class::class_init_function;
// This is actually just optimized away, apparently with no harm.
// Make sure that the parent type has been created.
//CppClassParent::CppObjectType::get_type();
// Create the wrapper type, with the same class/instance size as the base type.
register_derived_type(g_file_icon_get_type());
// Add derived versions of interfaces, if the C type implements any interfaces:
Icon::add_interface(get_type());
LoadableIcon::add_interface(get_type());
}
return *this;
}
void FileIcon_Class::class_init_function(void* g_class, void* class_data)
{
BaseClassType *const klass = static_cast<BaseClassType*>(g_class);
CppClassParent::class_init_function(klass, class_data);
#ifdef GLIBMM_VFUNCS_ENABLED
#endif //GLIBMM_VFUNCS_ENABLED
#ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
#endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
}
#ifdef GLIBMM_VFUNCS_ENABLED
#endif //GLIBMM_VFUNCS_ENABLED
#ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
#endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
Glib::ObjectBase* FileIcon_Class::wrap_new(GObject* object)
{
return new FileIcon((GFileIcon*)object);
}
/* The implementation: */
GFileIcon* FileIcon::gobj_copy()
{
reference();
return gobj();
}
FileIcon::FileIcon(const Glib::ConstructParams& construct_params)
:
Glib::Object(construct_params)
{
}
FileIcon::FileIcon(GFileIcon* castitem)
:
Glib::Object((GObject*)(castitem))
{}
FileIcon::~FileIcon()
{}
FileIcon::CppClassType FileIcon::fileicon_class_; // initialize static member
GType FileIcon::get_type()
{
return fileicon_class_.init().get_type();
}
GType FileIcon::get_base_type()
{
return g_file_icon_get_type();
}
FileIcon::FileIcon()
:
// Mark this class as non-derived to allow C++ vfuncs to be skipped.
Glib::ObjectBase(0),
Glib::Object(Glib::ConstructParams(fileicon_class_.init()))
{
}
Glib::RefPtr<FileIcon> FileIcon::create()
{
return Glib::RefPtr<FileIcon>( new FileIcon() );
}
Glib::RefPtr<File> FileIcon::get_file()
{
Glib::RefPtr<File> retvalue = Glib::wrap(g_file_icon_get_file(gobj()));
if(retvalue)
retvalue->reference(); //The function does not do a ref for us.
return retvalue;
}
Glib::RefPtr<const File> FileIcon::get_file() const
{
return const_cast<FileIcon*>(this)->get_file();
}
#ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
#endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
#ifdef GLIBMM_VFUNCS_ENABLED
#endif //GLIBMM_VFUNCS_ENABLED
} // namespace Gio

View File

@@ -0,0 +1,154 @@
// -*- c++ -*-
// Generated by gtkmmproc -- DO NOT MODIFY!
#ifndef _GIOMM_FILEICON_H
#define _GIOMM_FILEICON_H
#include <glibmm.h>
// -*- Mode: C++; indent-tabs-mode: nil; c-basic-offset: 2 -*-
/* Copyright (C) 2007 The gtkmm Development Team
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#include <glibmm/object.h>
#include <giomm/file.h>
#include <giomm/icon.h>
#include <giomm/loadableicon.h>
#ifndef DOXYGEN_SHOULD_SKIP_THIS
typedef struct _GFileIcon GFileIcon;
typedef struct _GFileIconClass GFileIconClass;
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
namespace Gio
{ class FileIcon_Class; } // namespace Gio
namespace Gio
{
/** FileIcon specifies an icon by pointing to an image file to be used as icon.
*
* @newin2p16
*/
class FileIcon
: public Glib::Object,
//Already derived by LoadableIcon: public Icon,
public LoadableIcon
{
#ifndef DOXYGEN_SHOULD_SKIP_THIS
public:
typedef FileIcon CppObjectType;
typedef FileIcon_Class CppClassType;
typedef GFileIcon BaseObjectType;
typedef GFileIconClass BaseClassType;
private: friend class FileIcon_Class;
static CppClassType fileicon_class_;
private:
// noncopyable
FileIcon(const FileIcon&);
FileIcon& operator=(const FileIcon&);
protected:
explicit FileIcon(const Glib::ConstructParams& construct_params);
explicit FileIcon(GFileIcon* castitem);
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
public:
virtual ~FileIcon();
#ifndef DOXYGEN_SHOULD_SKIP_THIS
static GType get_type() G_GNUC_CONST;
static GType get_base_type() G_GNUC_CONST;
#endif
///Provides access to the underlying C GObject.
GFileIcon* gobj() { return reinterpret_cast<GFileIcon*>(gobject_); }
///Provides access to the underlying C GObject.
const GFileIcon* gobj() const { return reinterpret_cast<GFileIcon*>(gobject_); }
///Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
GFileIcon* gobj_copy();
private:
protected:
FileIcon();
public:
static Glib::RefPtr<FileIcon> create();
/** Gets the File associated with the given @a icon.
* @return A File, or <tt>0</tt>.
*/
Glib::RefPtr<File> get_file();
/** Gets the File associated with the given @a icon.
* @return A File, or <tt>0</tt>.
*/
Glib::RefPtr<const File> get_file() const;
public:
public:
//C++ methods used to invoke GTK+ virtual functions:
#ifdef GLIBMM_VFUNCS_ENABLED
#endif //GLIBMM_VFUNCS_ENABLED
protected:
//GTK+ Virtual Functions (override these to change behaviour):
#ifdef GLIBMM_VFUNCS_ENABLED
#endif //GLIBMM_VFUNCS_ENABLED
//Default Signal Handlers::
#ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
#endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
};
} // namespace Gio
namespace Glib
{
/** A Glib::wrap() method for this object.
*
* @param object The C instance.
* @param take_copy False if the result should take ownership of the C instance. True if it should take a new copy or ref.
* @result A C++ instance that wraps this C instance.
*
* @relates Gio::FileIcon
*/
Glib::RefPtr<Gio::FileIcon> wrap(GFileIcon* object, bool take_copy = false);
}
#endif /* _GIOMM_FILEICON_H */

View File

@@ -0,0 +1,528 @@
// Generated by gtkmmproc -- DO NOT MODIFY!
#include <giomm/fileinfo.h>
#include <giomm/private/fileinfo_p.h>
// -*- Mode: C++; indent-tabs-mode: nil; c-basic-offset: 2 -*-
/* Copyright (C) 2007 The gtkmm Development Team
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#include <gio/gio.h>
namespace Gio {
// FileAttributeMatcher
Glib::RefPtr<FileAttributeMatcher>
FileAttributeMatcher::create(const std::string& attributes)
{
return Glib::wrap(g_file_attribute_matcher_new(attributes.c_str()));
}
Glib::TimeVal FileInfo::modification_time() const
{
Glib::TimeVal result;
g_file_info_get_modification_time(const_cast<GFileInfo*>(gobj()), (GTimeVal*)(&result));
return result;
}
} // namespace Gio
namespace
{
} // anonymous namespace
/* Why reinterpret_cast<FileAttributeMatcher*>(gobject) is needed:
*
* A FileAttributeMatcher instance is in fact always a GFileAttributeMatcher instance.
* Unfortunately, GFileAttributeMatcher cannot be a member of FileAttributeMatcher,
* because it is an opaque struct. Also, the C interface does not provide
* any hooks to install a destroy notification handler, thus we cannot
* wrap it dynamically either.
*
* The cast works because FileAttributeMatcher does not have any member data, and
* it is impossible to derive from it. This is ensured by not implementing
* the (protected) default constructor. The ctor is protected rather than
* private just to avoid a compile warning.
*/
namespace Glib
{
Glib::RefPtr<Gio::FileAttributeMatcher> wrap(GFileAttributeMatcher* object, bool take_copy)
{
if(take_copy && object)
g_file_attribute_matcher_ref(object);
// See the comment at the top of this file, if you want to know why the cast works.
return Glib::RefPtr<Gio::FileAttributeMatcher>(reinterpret_cast<Gio::FileAttributeMatcher*>(object));
}
} // namespace Glib
namespace Gio
{
void FileAttributeMatcher::reference() const
{
// See the comment at the top of this file, if you want to know why the cast works.
g_file_attribute_matcher_ref(reinterpret_cast<GFileAttributeMatcher*>(const_cast<FileAttributeMatcher*>(this)));
}
void FileAttributeMatcher::unreference() const
{
// See the comment at the top of this file, if you want to know why the cast works.
g_file_attribute_matcher_unref(reinterpret_cast<GFileAttributeMatcher*>(const_cast<FileAttributeMatcher*>(this)));
}
GFileAttributeMatcher* FileAttributeMatcher::gobj()
{
// See the comment at the top of this file, if you want to know why the cast works.
return reinterpret_cast<GFileAttributeMatcher*>(this);
}
const GFileAttributeMatcher* FileAttributeMatcher::gobj() const
{
// See the comment at the top of this file, if you want to know why the cast works.
return reinterpret_cast<const GFileAttributeMatcher*>(this);
}
GFileAttributeMatcher* FileAttributeMatcher::gobj_copy() const
{
// See the comment at the top of this file, if you want to know why the cast works.
GFileAttributeMatcher *const gobject = reinterpret_cast<GFileAttributeMatcher*>(const_cast<FileAttributeMatcher*>(this));
g_file_attribute_matcher_ref(gobject);
return gobject;
}
bool FileAttributeMatcher::matches(const std::string& full_name) const
{
return g_file_attribute_matcher_matches(const_cast<GFileAttributeMatcher*>(gobj()), full_name.c_str());
}
bool FileAttributeMatcher::matches_only(const std::string& full_name) const
{
return g_file_attribute_matcher_matches_only(const_cast<GFileAttributeMatcher*>(gobj()), full_name.c_str());
}
bool FileAttributeMatcher::enumerate_namespace(const std::string& ns)
{
return g_file_attribute_matcher_enumerate_namespace(gobj(), ns.c_str());
}
std::string FileAttributeMatcher::enumerate_next()
{
return Glib::convert_const_gchar_ptr_to_stdstring(g_file_attribute_matcher_enumerate_next(gobj()));
}
} // namespace Gio
namespace Glib
{
Glib::RefPtr<Gio::FileInfo> wrap(GFileInfo* object, bool take_copy)
{
return Glib::RefPtr<Gio::FileInfo>( dynamic_cast<Gio::FileInfo*> (Glib::wrap_auto ((GObject*)(object), take_copy)) );
//We use dynamic_cast<> in case of multiple inheritance.
}
} /* namespace Glib */
namespace Gio
{
/* The *_Class implementation: */
const Glib::Class& FileInfo_Class::init()
{
if(!gtype_) // create the GType if necessary
{
// Glib::Class has to know the class init function to clone custom types.
class_init_func_ = &FileInfo_Class::class_init_function;
// This is actually just optimized away, apparently with no harm.
// Make sure that the parent type has been created.
//CppClassParent::CppObjectType::get_type();
// Create the wrapper type, with the same class/instance size as the base type.
register_derived_type(g_file_info_get_type());
// Add derived versions of interfaces, if the C type implements any interfaces:
}
return *this;
}
void FileInfo_Class::class_init_function(void* g_class, void* class_data)
{
BaseClassType *const klass = static_cast<BaseClassType*>(g_class);
CppClassParent::class_init_function(klass, class_data);
#ifdef GLIBMM_VFUNCS_ENABLED
#endif //GLIBMM_VFUNCS_ENABLED
#ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
#endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
}
#ifdef GLIBMM_VFUNCS_ENABLED
#endif //GLIBMM_VFUNCS_ENABLED
#ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
#endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
Glib::ObjectBase* FileInfo_Class::wrap_new(GObject* object)
{
return new FileInfo((GFileInfo*)object);
}
/* The implementation: */
GFileInfo* FileInfo::gobj_copy()
{
reference();
return gobj();
}
FileInfo::FileInfo(const Glib::ConstructParams& construct_params)
:
Glib::Object(construct_params)
{
}
FileInfo::FileInfo(GFileInfo* castitem)
:
Glib::Object((GObject*)(castitem))
{}
FileInfo::~FileInfo()
{}
FileInfo::CppClassType FileInfo::fileinfo_class_; // initialize static member
GType FileInfo::get_type()
{
return fileinfo_class_.init().get_type();
}
GType FileInfo::get_base_type()
{
return g_file_info_get_type();
}
FileInfo::FileInfo()
:
// Mark this class as non-derived to allow C++ vfuncs to be skipped.
Glib::ObjectBase(0),
Glib::Object(Glib::ConstructParams(fileinfo_class_.init()))
{
}
Glib::RefPtr<FileInfo> FileInfo::dup() const
{
return Glib::wrap(g_file_info_dup(const_cast<GFileInfo*>(gobj())));
}
void FileInfo::copy_into(Glib::RefPtr<FileInfo>& dest) const
{
g_file_info_copy_into(const_cast<GFileInfo*>(gobj()), Glib::unwrap(dest));
}
bool FileInfo::has_attribute(const std::string& attribute) const
{
return g_file_info_has_attribute(const_cast<GFileInfo*>(gobj()), attribute.c_str());
}
Glib::StringArrayHandle FileInfo::list_attributes(const std::string& name_space) const
{
return Glib::StringArrayHandle(g_file_info_list_attributes(const_cast<GFileInfo*>(gobj()), name_space.c_str()));
}
FileAttributeType FileInfo::get_attribute_type(const std::string& attribute) const
{
return ((FileAttributeType)(g_file_info_get_attribute_type(const_cast<GFileInfo*>(gobj()), attribute.c_str())));
}
void FileInfo::remove_attribute(const std::string& attribute)
{
g_file_info_remove_attribute(gobj(), attribute.c_str());
}
std::string FileInfo::get_attribute_string(const std::string& attribute) const
{
return Glib::convert_const_gchar_ptr_to_stdstring(g_file_info_get_attribute_string(const_cast<GFileInfo*>(gobj()), attribute.c_str()));
}
Glib::ustring FileInfo::get_attribute_as_string(const std::string& attribute) const
{
return Glib::convert_return_gchar_ptr_to_ustring(g_file_info_get_attribute_as_string(const_cast<GFileInfo*>(gobj()), attribute.c_str()));
}
std::string FileInfo::get_attribute_byte_string(const std::string& attribute) const
{
return Glib::convert_const_gchar_ptr_to_stdstring(g_file_info_get_attribute_byte_string(const_cast<GFileInfo*>(gobj()), attribute.c_str()));
}
bool FileInfo::get_attribute_boolean(const std::string& attribute) const
{
return g_file_info_get_attribute_boolean(const_cast<GFileInfo*>(gobj()), attribute.c_str());
}
guint32 FileInfo::get_attribute_uint32(const std::string& attribute) const
{
return g_file_info_get_attribute_uint32(const_cast<GFileInfo*>(gobj()), attribute.c_str());
}
gint32 FileInfo::get_attribute_int32(const std::string& attribute) const
{
return g_file_info_get_attribute_int32(const_cast<GFileInfo*>(gobj()), attribute.c_str());
}
guint64 FileInfo::get_attribute_uint64(const std::string& attribute) const
{
return g_file_info_get_attribute_uint64(const_cast<GFileInfo*>(gobj()), attribute.c_str());
}
gint64 FileInfo::get_attribute_int64(const std::string& attribute) const
{
return g_file_info_get_attribute_int64(const_cast<GFileInfo*>(gobj()), attribute.c_str());
}
Glib::RefPtr<Glib::Object> FileInfo::get_attribute_object(const std::string& attribute) const
{
return Glib::wrap(g_file_info_get_attribute_object(const_cast<GFileInfo*>(gobj()), attribute.c_str()));
}
void FileInfo::set_attribute_string(const std::string& attribute, const std::string& value)
{
g_file_info_set_attribute_string(gobj(), attribute.c_str(), value.c_str());
}
void FileInfo::set_attribute_byte_string(const std::string& attribute, const std::string& value)
{
g_file_info_set_attribute_byte_string(gobj(), attribute.c_str(), value.c_str());
}
void FileInfo::set_attribute_boolean(const std::string& attribute, bool value)
{
g_file_info_set_attribute_boolean(gobj(), attribute.c_str(), static_cast<int>(value));
}
void FileInfo::set_attribute_uint32(const std::string& attribute, guint32 value)
{
g_file_info_set_attribute_uint32(gobj(), attribute.c_str(), value);
}
void FileInfo::set_attribute_int32(const std::string& attribute, gint32 value)
{
g_file_info_set_attribute_int32(gobj(), attribute.c_str(), value);
}
void FileInfo::set_attribute_uint64(const std::string& attribute, guint64 value)
{
g_file_info_set_attribute_uint64(gobj(), attribute.c_str(), value);
}
void FileInfo::set_attribute_int64(const std::string& attribute, gint64 value)
{
g_file_info_set_attribute_int64(gobj(), attribute.c_str(), value);
}
void FileInfo::set_attribute_object(const std::string& attribute, const Glib::RefPtr<Glib::Object>& object)
{
g_file_info_set_attribute_object(gobj(), attribute.c_str(), Glib::unwrap(object));
}
void FileInfo::clear_status()
{
g_file_info_clear_status(gobj());
}
FileType FileInfo::get_file_type() const
{
return ((FileType)(g_file_info_get_file_type(const_cast<GFileInfo*>(gobj()))));
}
bool FileInfo::is_hidden() const
{
return g_file_info_get_is_hidden(const_cast<GFileInfo*>(gobj()));
}
bool FileInfo::is_backup() const
{
return g_file_info_get_is_backup(const_cast<GFileInfo*>(gobj()));
}
bool FileInfo::is_symlink() const
{
return g_file_info_get_is_symlink(const_cast<GFileInfo*>(gobj()));
}
std::string FileInfo::get_name() const
{
return Glib::convert_const_gchar_ptr_to_stdstring(g_file_info_get_name(const_cast<GFileInfo*>(gobj())));
}
std::string FileInfo::get_display_name() const
{
return Glib::convert_const_gchar_ptr_to_stdstring(g_file_info_get_display_name(const_cast<GFileInfo*>(gobj())));
}
std::string FileInfo::get_edit_name() const
{
return Glib::convert_const_gchar_ptr_to_stdstring(g_file_info_get_edit_name(const_cast<GFileInfo*>(gobj())));
}
Glib::RefPtr<Icon> FileInfo::get_icon()
{
Glib::RefPtr<Icon> retvalue = Glib::wrap(g_file_info_get_icon(gobj()));
if(retvalue)
retvalue->reference(); //The function does not do a ref for us.
return retvalue;
}
Glib::RefPtr<const Icon> FileInfo::get_icon() const
{
return const_cast<FileInfo*>(this)->get_icon();
}
std::string FileInfo::get_content_type() const
{
return Glib::convert_const_gchar_ptr_to_stdstring(g_file_info_get_content_type(const_cast<GFileInfo*>(gobj())));
}
goffset FileInfo::get_size() const
{
return g_file_info_get_size(const_cast<GFileInfo*>(gobj()));
}
std::string FileInfo::get_symlink_target() const
{
return Glib::convert_const_gchar_ptr_to_stdstring(g_file_info_get_symlink_target(const_cast<GFileInfo*>(gobj())));
}
std::string FileInfo::get_etag() const
{
return Glib::convert_const_gchar_ptr_to_stdstring(g_file_info_get_etag(const_cast<GFileInfo*>(gobj())));
}
gint32 FileInfo::get_sort_order() const
{
return g_file_info_get_sort_order(const_cast<GFileInfo*>(gobj()));
}
void FileInfo::set_attribute_mask(const Glib::RefPtr<FileAttributeMatcher>& mask)
{
g_file_info_set_attribute_mask(gobj(), const_cast<GFileAttributeMatcher*>(Glib::unwrap(mask)));
}
void FileInfo::unset_attribute_mask()
{
g_file_info_unset_attribute_mask(gobj());
}
void FileInfo::set_file_type(FileType type)
{
g_file_info_set_file_type(gobj(), ((GFileType)(type)));
}
void FileInfo::set_is_hidden(bool is_hidden)
{
g_file_info_set_is_hidden(gobj(), static_cast<int>(is_hidden));
}
void FileInfo::set_is_symlink(bool is_symlink)
{
g_file_info_set_is_symlink(gobj(), static_cast<int>(is_symlink));
}
void FileInfo::set_name(const std::string& name)
{
g_file_info_set_name(gobj(), name.c_str());
}
void FileInfo::set_display_name(const std::string& display_name)
{
g_file_info_set_display_name(gobj(), display_name.c_str());
}
void FileInfo::set_edit_name(const std::string& edit_name)
{
g_file_info_set_edit_name(gobj(), edit_name.c_str());
}
void FileInfo::set_icon(const Glib::RefPtr<Icon>& icon)
{
g_file_info_set_icon(gobj(), const_cast<GIcon*>(Glib::unwrap(icon)));
}
void FileInfo::set_content_type(const std::string& content_type)
{
g_file_info_set_content_type(gobj(), content_type.c_str());
}
void FileInfo::set_size(goffset size)
{
g_file_info_set_size(gobj(), size);
}
void FileInfo::set_modification_time(const Glib::TimeVal& mtime)
{
g_file_info_set_modification_time(gobj(), const_cast<GTimeVal*>(static_cast<const GTimeVal*>(&mtime)));
}
void FileInfo::set_symlink_target(const std::string& symlink_target)
{
g_file_info_set_symlink_target(gobj(), symlink_target.c_str());
}
void FileInfo::set_sort_order(gint32 sort_order)
{
g_file_info_set_sort_order(gobj(), sort_order);
}
#ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
#endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
#ifdef GLIBMM_VFUNCS_ENABLED
#endif //GLIBMM_VFUNCS_ENABLED
} // namespace Gio

View File

@@ -0,0 +1,608 @@
// -*- c++ -*-
// Generated by gtkmmproc -- DO NOT MODIFY!
#ifndef _GIOMM_FILEINFO_H
#define _GIOMM_FILEINFO_H
#include <glibmm.h>
// -*- Mode: C++; indent-tabs-mode: nil; c-basic-offset: 2 -*-
/* Copyright (C) 2007 The gtkmm Development Team
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#include <glibmm/arrayhandle.h>
#include <glibmm/object.h>
#include <glibmm/timeval.h>
#include <giomm/fileattributeinfolist.h>
#include <giomm/icon.h>
#ifndef DOXYGEN_SHOULD_SKIP_THIS
typedef struct _GFileInfo GFileInfo;
typedef struct _GFileInfoClass GFileInfoClass;
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
namespace Gio
{ class FileInfo_Class; } // namespace Gio
namespace Gio
{
// Rename FILE_TYPE_UNKNOWN to FILE_TYPE_NOT_KNOWN because the former is a
// define in a Windows header (winbase.h, included from windows.h).
/** @addtogroup giommEnums Enums and Flags */
/**
* @ingroup giommEnums
*/
enum FileType
{
FILE_TYPE_NOT_KNOWN,
FILE_TYPE_REGULAR,
FILE_TYPE_DIRECTORY,
FILE_TYPE_SYMBOLIC_LINK,
FILE_TYPE_SPECIAL,
FILE_TYPE_SHORTCUT,
FILE_TYPE_MOUNTABLE
};
// Provide FILE_TYPE_UNKNOWN for backwards compatibility.
#ifndef DOXYGEN_SHOULD_SKIP_THIS
#ifndef FILE_TYPE_UNKNOWN
const FileType FILE_TYPE_UNKNOWN = FILE_TYPE_NOT_KNOWN;
#endif
#endif
//TODO: attribute strings
/** FileAttributeMatcher allows for searching through a FileInfo for attributes.
*
* @newin2p16
*/
class FileAttributeMatcher
{
public:
#ifndef DOXYGEN_SHOULD_SKIP_THIS
typedef FileAttributeMatcher CppObjectType;
typedef GFileAttributeMatcher BaseObjectType;
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
// For use with Glib::RefPtr<> only.
void reference() const;
void unreference() const;
///Provides access to the underlying C instance.
GFileAttributeMatcher* gobj();
///Provides access to the underlying C instance.
const GFileAttributeMatcher* gobj() const;
///Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
GFileAttributeMatcher* gobj_copy() const;
protected:
// Do not derive this. Gio::FileAttributeMatcher can neither be constructed nor deleted.
FileAttributeMatcher();
void operator delete(void*, size_t);
private:
// noncopyable
FileAttributeMatcher(const FileAttributeMatcher&);
FileAttributeMatcher& operator=(const FileAttributeMatcher&);
public:
/** Creates a new file attribute matcher, which matches attributes against a given string.
* The attribute string should be formatted with specific keys separated from namespaces with a double colon.
* Several "namespace::key" strings may be concatenated with a single comma (e.g. "standard::type,standard::is-hidden").
* The wildcard "*" may be used to match all keys and namespaces, or "namespace::*" will match all keys in a given namespace.
*
* @param attributes The attributes string.
* @result a new FileAttributeMatcher.
*/
static Glib::RefPtr<FileAttributeMatcher> create(const std::string& attributes = "*");
/** Checks if an attribute will be matched by an attribute matcher. If
* the matcher was created with the "*" matching string, this function
* will always return <tt>true</tt>.
* @param attribute A file attribute key.
* @return <tt>true</tt> if @a attribute matches @a matcher. <tt>false</tt> otherwise.
*/
bool matches(const std::string& full_name) const;
/** Checks if a attribute matcher only matches a given attribute. Always
* Returns: <tt>true</tt> if the matcher only matches @a attribute. <tt>false</tt> otherwise.
* @param attribute A file attribute key.
* @return <tt>true</tt> if the matcher only matches @a attribute. <tt>false</tt> otherwise.
*/
bool matches_only(const std::string& full_name) const;
/** Checks if the matcher will match all of the keys in a given namespace.
* This will always return <tt>true</tt> if a wildcard character is in use (e.g. if
* matcher was created with "standard::*" and @a ns is "standard", or if matcher was created
* using "*" and namespace is anything.)
*
* TODO: this is awkwardly worded.
* @param ns A string containing a file attribute namespace.
* @return <tt>true</tt> if the matcher matches all of the entries
* in the given @a ns, <tt>false</tt> otherwise.
*/
bool enumerate_namespace(const std::string& ns);
/** Gets the next matched attribute from a FileAttributeMatcher.
* @return A string containing the next attribute or <tt>0</tt> if
* no more attribute exist.
*/
std::string enumerate_next();
};
/** FileInfo implements methods for getting information that all files should contain, and allows for manipulation of extended attributes.
* See FileAttribute for more information on how GIO handles file attributes.
*
* To obtain a FileInfo for a File, use File::query_info() (or its async variant).
* To obtain a FileInfo for a file input or output stream, use FileInput::stream_query_info() or FileOutput::stream_query_info()
* (or their async variants).
*
* FileAttributeMatcher allows for searching through a FileInfo for attributes.
*/
class FileInfo : public Glib::Object
{
#ifndef DOXYGEN_SHOULD_SKIP_THIS
public:
typedef FileInfo CppObjectType;
typedef FileInfo_Class CppClassType;
typedef GFileInfo BaseObjectType;
typedef GFileInfoClass BaseClassType;
private: friend class FileInfo_Class;
static CppClassType fileinfo_class_;
private:
// noncopyable
FileInfo(const FileInfo&);
FileInfo& operator=(const FileInfo&);
protected:
explicit FileInfo(const Glib::ConstructParams& construct_params);
explicit FileInfo(GFileInfo* castitem);
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
public:
virtual ~FileInfo();
#ifndef DOXYGEN_SHOULD_SKIP_THIS
static GType get_type() G_GNUC_CONST;
static GType get_base_type() G_GNUC_CONST;
#endif
///Provides access to the underlying C GObject.
GFileInfo* gobj() { return reinterpret_cast<GFileInfo*>(gobject_); }
///Provides access to the underlying C GObject.
const GFileInfo* gobj() const { return reinterpret_cast<GFileInfo*>(gobject_); }
///Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
GFileInfo* gobj_copy();
private:
public:
FileInfo();
/** Duplicates a file info structure.
* @return A duplicate FileInfo of @a other.
*/
Glib::RefPtr<FileInfo> dup() const;
/** Copies all of the FileAttribute&lt;!-- --&gt;s from @a src_info to @a dest_info.
* @param dest_info Destination to copy attributes to.
*/
void copy_into(Glib::RefPtr<FileInfo>& dest) const;
/** Checks if a file info structure has an attribute named @a attribute.
* @param attribute A file attribute key.
* @return <tt>true</tt> if @a Ginfo has an attribute named @a attribute,
* <tt>false</tt> otherwise.
*/
bool has_attribute(const std::string& attribute) const;
/** Lists the file info structure's attributes.
* @param name_space A file attribute key's namespace.
* @return A null-terminated array of strings of all of the
* possible attribute types for the given @a name_space, or
* <tt>0</tt> on error.
*/
Glib::StringArrayHandle list_attributes(const std::string& name_space) const;
/** Gets the attribute type for an attribute key.
* @param attribute A file attribute key.
* @return A FileAttributeType for the given @a attribute, or
* FILE_ATTRIBUTE_TYPE_INVALID if the key is invalid.
*/
FileAttributeType get_attribute_type(const std::string& attribute) const;
/** Removes all cases of @a attribute from @a info if it exists.
* @param attribute A file attribute key.
*/
void remove_attribute(const std::string& attribute);
/** Gets the value of a string attribute. If the attribute does
* not contain a string, <tt>0</tt> will be returned.
* @param attribute A file attribute key.
* @return The contents of the @a attribute value as a string, or
* <tt>0</tt> otherwise.
*/
std::string get_attribute_string(const std::string& attribute) const;
/** Gets the value of a attribute, formated as a string.
* This escapes things as needed to make the string valid
* utf8.
* @param attribute A file attribute key.
* @return A UTF-8 string associated with the given @a attribute.
* When you're done with the string it must be freed with Glib::free().
*/
Glib::ustring get_attribute_as_string(const std::string& attribute) const;
/** Gets the value of a byte string attribute. If the attribute does
* not contain a byte string, <tt>0</tt> will be returned.
* @param attribute A file attribute key.
* @return The contents of the @a attribute value as a byte string, or
* <tt>0</tt> otherwise.
*/
std::string get_attribute_byte_string(const std::string& attribute) const;
/** Gets the value of a boolean attribute. If the attribute does not
* contain a boolean value, <tt>false</tt> will be returned.
* @param attribute A file attribute key.
* @return The boolean value contained within the attribute.
*/
bool get_attribute_boolean(const std::string& attribute) const;
/** Gets an unsigned 32-bit integer contained within the attribute. If the
* attribute does not contain an unsigned 32-bit integer, or is invalid,
* 0 will be returned.
* @param attribute A file attribute key.
* @return An unsigned 32-bit integer from the attribute.
*/
guint32 get_attribute_uint32(const std::string& attribute) const;
/** Gets a signed 32-bit integer contained within the attribute. If the
* attribute does not contain a signed 32-bit integer, or is invalid,
* 0 will be returned.
* @param attribute A file attribute key.
* @return A signed 32-bit integer from the attribute.
*/
gint32 get_attribute_int32(const std::string& attribute) const;
/** Gets a unsigned 64-bit integer contained within the attribute. If the
* attribute does not contain an unsigned 64-bit integer, or is invalid,
* 0 will be returned.
* @param attribute A file attribute key.
* @return A unsigned 64-bit integer from the attribute.
*/
guint64 get_attribute_uint64(const std::string& attribute) const;
/** Gets a signed 64-bit integer contained within the attribute. If the
* attribute does not contain an signed 64-bit integer, or is invalid,
* 0 will be returned.
* @param attribute A file attribute key.
* @return A signed 64-bit integer from the attribute.
*/
gint64 get_attribute_int64(const std::string& attribute) const;
/** Gets the value of a Object attribute. If the attribute does
* not contain a Object, <tt>0</tt> will be returned.
* @param attribute A file attribute key.
* @return A Object associated with the given @a attribute, or
* <tt>0</tt> otherwise.
*/
Glib::RefPtr<Glib::Object> get_attribute_object(const std::string& attribute) const;
/** Sets the @a attribute to contain the given @a attr_value,
* if possible.
* @param attribute A file attribute key.
* @param attr_value A string.
*/
void set_attribute_string(const std::string& attribute, const std::string& value);
/** Sets the @a attribute to contain the given @a attr_value,
* if possible.
* @param attribute A file attribute key.
* @param attr_value A byte string.
*/
void set_attribute_byte_string(const std::string& attribute, const std::string& value);
/** Sets the @a attribute to contain the given @a attr_value,
* if possible.
* @param attribute A file attribute key.
* @param attr_value A boolean value.
*/
void set_attribute_boolean(const std::string& attribute, bool value);
/** Sets the @a attribute to contain the given @a attr_value,
* if possible.
* @param attribute A file attribute key.
* @param attr_value An unsigned 32-bit integer.
*/
void set_attribute_uint32(const std::string& attribute, guint32 value);
/** Sets the @a attribute to contain the given @a attr_value,
* if possible.
* @param attribute A file attribute key.
* @param attr_value A signed 32-bit integer.
*/
void set_attribute_int32(const std::string& attribute, gint32 value);
/** Sets the @a attribute to contain the given @a attr_value,
* if possible.
* @param attribute A file attribute key.
* @param attr_value An unsigned 64-bit integer.
*/
void set_attribute_uint64(const std::string& attribute, guint64 value);
/** Sets the @a attribute to contain the given @a attr_value,
* if possible.
* @param attribute Attribute name to set.
* @param attr_value Int64 value to set attribute to.
*/
void set_attribute_int64(const std::string& attribute, gint64 value);
/** Sets the @a attribute to contain the given @a attr_value,
* if possible.
* @param attribute A file attribute key.
* @param attr_value A Object.
*/
void set_attribute_object(const std::string& attribute, const Glib::RefPtr<Glib::Object>& object);
/** Clears the status information from @a info.
*/
void clear_status();
// helper getters
/** Gets a file's type (whether it is a regular file, symlink, etc).
* This is different from the file's content type, see g_file_info_get_content_type().
* @return A FileType for the given file.
*/
FileType get_file_type() const;
/** Checks if a file is hidden.
* @return <tt>true</tt> if the file is a hidden file, <tt>false</tt> otherwise.
*/
bool is_hidden() const;
/** Checks if a file is a backup file.
* @return <tt>true</tt> if file is a backup file, <tt>false</tt> otherwise.
*/
bool is_backup() const;
/** Checks if a file is a symlink.
* @return <tt>true</tt> if the given @a info is a symlink.
*/
bool is_symlink() const;
/** Gets the name for a file.
* @return A string containing the file name.
*/
std::string get_name() const;
/** Gets a display name for a file.
* @return A string containing the display name.
*/
std::string get_display_name() const;
/** Gets the edit name for a file.
* @return A string containing the edit name.
*/
std::string get_edit_name() const;
/** Gets the icon for a file.
* @return Icon for the given @a info.
*/
Glib::RefPtr<Icon> get_icon();
/** Gets the icon for a file.
* @return Icon for the given @a info.
*/
Glib::RefPtr<const Icon> get_icon() const;
/** Gets the file's content type.
* @return A string containing the file's content type.s.
*/
std::string get_content_type() const;
/** Gets the file's size.
* @return A #goffset containing the file's size.
*/
goffset get_size() const;
Glib::TimeVal modification_time() const;
/** Gets the symlink target for a given FileInfo.
* @return A string containing the symlink target.
*/
std::string get_symlink_target() const;
/** Gets the entity tag for a given
* FileInfo. See FILE_ATTRIBUTE_ETAG_VALUE.
* @return A string containing the value of the "etag:value" attribute.
*/
std::string get_etag() const;
/** Gets the value of the sort_order attribute from the FileInfo.
* See FILE_ATTRIBUTE_STANDARD_SORT_ORDER.
* @return A #gint32 containing the value of the "standard::sort_order" attribute.
*/
gint32 get_sort_order() const;
/** Sets @a mask on @a info to match specific attribute types.
* @param mask A FileAttributeMatcher.
*/
void set_attribute_mask(const Glib::RefPtr<FileAttributeMatcher>& mask);
/** Unsets a mask set by g_file_info_set_attribute_mask(), if one
* is set.
*/
void unset_attribute_mask();
// helper setters
/** Sets the file type in a FileInfo to @a type.
* See FILE_ATTRIBUTE_STANDARD_TYPE.
* @param type A FileType.
*/
void set_file_type(FileType type);
/** Sets the "is_hidden" attribute in a FileInfo according to @a is_symlink.
* See FILE_ATTRIBUTE_STANDARD_IS_HIDDEN.
* @param is_hidden A <tt>bool</tt>.
*/
void set_is_hidden(bool is_hidden = true);
/** Sets the "is_symlink" attribute in a FileInfo according to @a is_symlink.
* See FILE_ATTRIBUTE_STANDARD_IS_SYMLINK.
* @param is_symlink A <tt>bool</tt>.
*/
void set_is_symlink(bool is_symlink = true);
/** Sets the name attribute for the current FileInfo.
* See FILE_ATTRIBUTE_STANDARD_NAME.
* @param name A string containing a name.
*/
void set_name(const std::string& name);
/** Sets the display name for the current FileInfo.
* See FILE_ATTRIBUTE_STANDARD_DISPLAY_NAME.
* @param display_name A string containing a display name.
*/
void set_display_name(const std::string& display_name);
/** Sets the edit name for the current file.
* See FILE_ATTRIBUTE_STANDARD_EDIT_NAME.
* @param edit_name A string containing an edit name.
*/
void set_edit_name(const std::string& edit_name);
/** Sets the icon for a given FileInfo.
* See FILE_ATTRIBUTE_STANDARD_ICON.
* @param icon A Icon.
*/
void set_icon(const Glib::RefPtr<Icon>& icon);
/** Sets the content type attribute for a given FileInfo.
* See FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE.
* @param content_type A content type. See ContentType.
*/
void set_content_type(const std::string& content_type);
/** Sets the FILE_ATTRIBUTE_STANDARD_SIZE attribute in the file info
* to the given size.
* @param size A #goffset containing the file's size.
*/
void set_size(goffset size);
/** Sets the FILE_ATTRIBUTE_TIME_MODIFIED attribute in the file
* info to the given time value.
* @param mtime A TimeVal.
*/
void set_modification_time(const Glib::TimeVal& mtime);
/** Sets the FILE_ATTRIBUTE_STANDARD_SYMLINK_TARGET attribute in the file info
* to the given symlink target.
* @param symlink_target A static string containing a path to a symlink target.
*/
void set_symlink_target(const std::string& symlink_target);
/** Sets the sort order attribute in the file info structure. See
* FILE_ATTRIBUTE_STANDARD_SORT_ORDER.
* @param sort_order A sort order integer.
*/
void set_sort_order(gint32 sort_order);
public:
public:
//C++ methods used to invoke GTK+ virtual functions:
#ifdef GLIBMM_VFUNCS_ENABLED
#endif //GLIBMM_VFUNCS_ENABLED
protected:
//GTK+ Virtual Functions (override these to change behaviour):
#ifdef GLIBMM_VFUNCS_ENABLED
#endif //GLIBMM_VFUNCS_ENABLED
//Default Signal Handlers::
#ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
#endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
};
} // namespace Gio
namespace Glib
{
/** A Glib::wrap() method for this object.
*
* @param object The C instance.
* @param take_copy False if the result should take ownership of the C instance. True if it should take a new copy or ref.
* @result A C++ instance that wraps this C instance.
*
* @relates Gio::FileAttributeMatcher
*/
Glib::RefPtr<Gio::FileAttributeMatcher> wrap(GFileAttributeMatcher* object, bool take_copy = false);
} // namespace Glib
namespace Glib
{
/** A Glib::wrap() method for this object.
*
* @param object The C instance.
* @param take_copy False if the result should take ownership of the C instance. True if it should take a new copy or ref.
* @result A C++ instance that wraps this C instance.
*
* @relates Gio::FileInfo
*/
Glib::RefPtr<Gio::FileInfo> wrap(GFileInfo* object, bool take_copy = false);
}
#endif /* _GIOMM_FILEINFO_H */

View File

@@ -0,0 +1,243 @@
// Generated by gtkmmproc -- DO NOT MODIFY!
#include <giomm/fileinputstream.h>
#include <giomm/private/fileinputstream_p.h>
// -*- Mode: C++; indent-tabs-mode: nil; c-basic-offset: 2 -*-
/* Copyright (C) 2007 The gtkmm Development Team
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#include <gio/gio.h>
#include "slot_async.h"
#include <glibmm/exceptionhandler.h>
namespace Gio
{
#ifdef GLIBMM_EXCEPTIONS_ENABLED
Glib::RefPtr<FileInfo> FileInputStream::query_info(const Glib::RefPtr<Cancellable>& cancellable, const std::string& attributes)
#else
Glib::RefPtr<FileInfo> FileInputStream::query_info(const Glib::RefPtr<Cancellable>& cancellable, const std::string& attributes, std::auto_ptr<Glib::Error>& error)
#endif //GLIBMM_EXCEPTIONS_ENABLED
{
GError* gerror = 0;
Glib::RefPtr<FileInfo> retvalue = Glib::wrap(g_file_input_stream_query_info(gobj(), g_strdup((attributes).c_str()), const_cast<GCancellable*>(Glib::unwrap(cancellable)), &(gerror)));
#ifdef GLIBMM_EXCEPTIONS_ENABLED
if(gerror)
::Glib::Error::throw_exception(gerror);
#else
if(gerror)
error = ::Glib::Error::throw_exception(gerror);
#endif //GLIBMM_EXCEPTIONS_ENABLED
return retvalue;
}
#ifdef GLIBMM_EXCEPTIONS_ENABLED
Glib::RefPtr<FileInfo> FileInputStream::query_info(const std::string& attributes)
#else
Glib::RefPtr<FileInfo> FileInputStream::query_info(const std::string& attributes, std::auto_ptr<Glib::Error>& error)
#endif //GLIBMM_EXCEPTIONS_ENABLED
{
GError* gerror = 0;
Glib::RefPtr<FileInfo> retvalue = Glib::wrap(g_file_input_stream_query_info(gobj(), g_strdup((attributes).c_str()), NULL, &(gerror)));
#ifdef GLIBMM_EXCEPTIONS_ENABLED
if(gerror)
::Glib::Error::throw_exception(gerror);
#else
if(gerror)
error = ::Glib::Error::throw_exception(gerror);
#endif //GLIBMM_EXCEPTIONS_ENABLED
return retvalue;
}
void
FileInputStream::query_info_async(const SlotAsyncReady& slot, const Glib::RefPtr<Cancellable>& cancellable, const std::string& attributes, int io_priority)
{
// 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_input_stream_query_info_async(gobj(),
const_cast<char*>(attributes.c_str()),
io_priority,
cancellable->gobj(),
&SignalProxy_async_callback,
slot_copy);
}
void
FileInputStream::query_info_async(const SlotAsyncReady& slot, const std::string& attributes, int io_priority)
{
// 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_input_stream_query_info_async(gobj(),
const_cast<char*>(attributes.c_str()),
io_priority,
NULL,
&SignalProxy_async_callback,
slot_copy);
}
} // namespace Gio
namespace
{
} // anonymous namespace
namespace Glib
{
Glib::RefPtr<Gio::FileInputStream> wrap(GFileInputStream* object, bool take_copy)
{
return Glib::RefPtr<Gio::FileInputStream>( dynamic_cast<Gio::FileInputStream*> (Glib::wrap_auto ((GObject*)(object), take_copy)) );
//We use dynamic_cast<> in case of multiple inheritance.
}
} /* namespace Glib */
namespace Gio
{
/* The *_Class implementation: */
const Glib::Class& FileInputStream_Class::init()
{
if(!gtype_) // create the GType if necessary
{
// Glib::Class has to know the class init function to clone custom types.
class_init_func_ = &FileInputStream_Class::class_init_function;
// This is actually just optimized away, apparently with no harm.
// Make sure that the parent type has been created.
//CppClassParent::CppObjectType::get_type();
// Create the wrapper type, with the same class/instance size as the base type.
register_derived_type(g_file_input_stream_get_type());
// Add derived versions of interfaces, if the C type implements any interfaces:
Seekable::add_interface(get_type());
}
return *this;
}
void FileInputStream_Class::class_init_function(void* g_class, void* class_data)
{
BaseClassType *const klass = static_cast<BaseClassType*>(g_class);
CppClassParent::class_init_function(klass, class_data);
#ifdef GLIBMM_VFUNCS_ENABLED
#endif //GLIBMM_VFUNCS_ENABLED
#ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
#endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
}
#ifdef GLIBMM_VFUNCS_ENABLED
#endif //GLIBMM_VFUNCS_ENABLED
#ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
#endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
Glib::ObjectBase* FileInputStream_Class::wrap_new(GObject* object)
{
return new FileInputStream((GFileInputStream*)object);
}
/* The implementation: */
GFileInputStream* FileInputStream::gobj_copy()
{
reference();
return gobj();
}
FileInputStream::FileInputStream(const Glib::ConstructParams& construct_params)
:
Gio::InputStream(construct_params)
{
}
FileInputStream::FileInputStream(GFileInputStream* castitem)
:
Gio::InputStream((GInputStream*)(castitem))
{}
FileInputStream::~FileInputStream()
{}
FileInputStream::CppClassType FileInputStream::fileinputstream_class_; // initialize static member
GType FileInputStream::get_type()
{
return fileinputstream_class_.init().get_type();
}
GType FileInputStream::get_base_type()
{
return g_file_input_stream_get_type();
}
#ifdef GLIBMM_EXCEPTIONS_ENABLED
Glib::RefPtr<FileInfo> FileInputStream::query_info_finish(const Glib::RefPtr<AsyncResult>& result)
#else
Glib::RefPtr<FileInfo> FileInputStream::query_info_finish(const Glib::RefPtr<AsyncResult>& result, std::auto_ptr<Glib::Error>& error)
#endif //GLIBMM_EXCEPTIONS_ENABLED
{
GError* gerror = 0;
Glib::RefPtr<FileInfo> retvalue = Glib::wrap(g_file_input_stream_query_info_finish(gobj(), Glib::unwrap(result), &(gerror)));
#ifdef GLIBMM_EXCEPTIONS_ENABLED
if(gerror)
::Glib::Error::throw_exception(gerror);
#else
if(gerror)
error = ::Glib::Error::throw_exception(gerror);
#endif //GLIBMM_EXCEPTIONS_ENABLED
return retvalue;
}
#ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
#endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
#ifdef GLIBMM_VFUNCS_ENABLED
#endif //GLIBMM_VFUNCS_ENABLED
} // namespace Gio

View File

@@ -0,0 +1,221 @@
// -*- c++ -*-
// Generated by gtkmmproc -- DO NOT MODIFY!
#ifndef _GIOMM_FILEINPUTSTREAM_H
#define _GIOMM_FILEINPUTSTREAM_H
#include <glibmm.h>
// -*- Mode: C++; indent-tabs-mode: nil; c-basic-offset: 2 -*-
/* Copyright (C) 2007 The gtkmm Development Team
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#include <giomm/fileinfo.h>
#include <giomm/inputstream.h>
#include <giomm/seekable.h>
#include <glibmm/iochannel.h>
#include <glibmm/object.h>
#ifndef DOXYGEN_SHOULD_SKIP_THIS
typedef struct _GFileInputStream GFileInputStream;
typedef struct _GFileInputStreamClass GFileInputStreamClass;
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
namespace Gio
{ class FileInputStream_Class; } // namespace Gio
namespace Gio
{
/** FileInputStream provides input streams that take their content from a file.
*
* FileInputStream implements Seekable, which allows the input stream to jump to arbitrary positions in the file,
* provided the file system of the file allows it.
* Use the methods of the Seekable base class for seeking and positioning.
*
* @ingroup Streams
*
* @newin2p16
*/
class FileInputStream
: public Gio::InputStream,
public Seekable
{
#ifndef DOXYGEN_SHOULD_SKIP_THIS
public:
typedef FileInputStream CppObjectType;
typedef FileInputStream_Class CppClassType;
typedef GFileInputStream BaseObjectType;
typedef GFileInputStreamClass BaseClassType;
private: friend class FileInputStream_Class;
static CppClassType fileinputstream_class_;
private:
// noncopyable
FileInputStream(const FileInputStream&);
FileInputStream& operator=(const FileInputStream&);
protected:
explicit FileInputStream(const Glib::ConstructParams& construct_params);
explicit FileInputStream(GFileInputStream* castitem);
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
public:
virtual ~FileInputStream();
#ifndef DOXYGEN_SHOULD_SKIP_THIS
static GType get_type() G_GNUC_CONST;
static GType get_base_type() G_GNUC_CONST;
#endif
///Provides access to the underlying C GObject.
GFileInputStream* gobj() { return reinterpret_cast<GFileInputStream*>(gobject_); }
///Provides access to the underlying C GObject.
const GFileInputStream* gobj() const { return reinterpret_cast<GFileInputStream*>(gobject_); }
///Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
GFileInputStream* gobj_copy();
private:
public:
/** Queries a file input stream the given @a attributes. This function blocks
* while querying the stream. For the asynchronous (non-blocking) version
* of this function, see query_info_async(). While the
* stream is blocked, the stream will set the pending flag internally, and
* any other operations on the stream will throw a Gio::Error with PENDING.
*
* @param attributes A file attribute query string.
* @param cancellable A Cancellable object.
* @return A FileInfo, or an empty RefPtr on error.
*/
#ifdef GLIBMM_EXCEPTIONS_ENABLED
Glib::RefPtr<FileInfo> query_info(const Glib::RefPtr<Cancellable>& cancellable, const std::string& attributes = "*");
#else
Glib::RefPtr<FileInfo> query_info(const Glib::RefPtr<Cancellable>& cancellable, const std::string& attributes, std::auto_ptr<Glib::Error>& error);
#endif //GLIBMM_EXCEPTIONS_ENABLED
/** Queries a file input stream the given @a attributes. This function blocks
* while querying the stream. For the asynchronous (non-blocking) version
* of this function, see query_info_async(). While the
* stream is blocked, the stream will set the pending flag internally, and
* any other operations on the stream will throw a Gio::Error with PENDING.
*
* @param attributes A file attribute query string.
* @return A FileInfo, or an empty RefPtr on error.
*/
#ifdef GLIBMM_EXCEPTIONS_ENABLED
Glib::RefPtr<FileInfo> query_info(const std::string& attributes = "*");
#else
Glib::RefPtr<FileInfo> query_info(const std::string& attributes, std::auto_ptr<Glib::Error>& error);
#endif //GLIBMM_EXCEPTIONS_ENABLED
/** Queries the stream information asynchronously. For the synchronous version of this function, see query_info().
*
* The operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled,
* a Gio::Error with CANCELLED will be thrown.
*
* When the operation is finished, @a slot will be called. You can then call query_info_finish() to get the result of the operation.
*
* @param slot A callback slot which will be called when the request is satisfied.
* @param cancellable A Cancellable object which can be used to cancel the operation.
* @param attributes A file attribute query string.
* @param io_priority The I/O priority of the request.
*/
void query_info_async(const SlotAsyncReady& slot, const Glib::RefPtr<Cancellable>& cancellable, const std::string& attributes = "*", int io_priority = Glib::PRIORITY_DEFAULT);
/** Queries the stream information asynchronously. For the synchronous version of this function, see query_info().
*
* When the operation is finished, @a slot will be called. You can then call query_info_finish() to get the result of the operation.
*
* @param slot A callback slot which will be called when the request is satisfied.
* @param attributes A file attribute query string.
* @param io_priority The I/O priority of the request.
*/
void query_info_async(const SlotAsyncReady& slot, const std::string& attributes = "*", int io_priority = Glib::PRIORITY_DEFAULT);
/** Finishes an asynchronous info query operation.
* @param result A AsyncResult.
* @return FileInfo.
*/
#ifdef GLIBMM_EXCEPTIONS_ENABLED
Glib::RefPtr<FileInfo> query_info_finish(const Glib::RefPtr<AsyncResult>& result);
#else
Glib::RefPtr<FileInfo> query_info_finish(const Glib::RefPtr<AsyncResult>& result, std::auto_ptr<Glib::Error>& error);
#endif //GLIBMM_EXCEPTIONS_ENABLED
//These seem to be just C convenience functions - they are already in the Seekable base class:
//See http://bugzilla.gnome.org/show_bug.cgi?id=509990
// _WRAP_METHOD(goffset tell() const, g_file_input_stream_tell)
// _WRAP_METHOD(bool can_seek() const, g_file_input_stream_can_seek)
// _WRAP_METHOD(bool seek(goffset offset, Glib::SeekType type, const Glib::RefPtr<Cancellable>& cancellable),
// g_file_input_stream_seek,
// errthrow)
public:
public:
//C++ methods used to invoke GTK+ virtual functions:
#ifdef GLIBMM_VFUNCS_ENABLED
#endif //GLIBMM_VFUNCS_ENABLED
protected:
//GTK+ Virtual Functions (override these to change behaviour):
#ifdef GLIBMM_VFUNCS_ENABLED
#endif //GLIBMM_VFUNCS_ENABLED
//Default Signal Handlers::
#ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
#endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
};
} // namespace Gio
namespace Glib
{
/** A Glib::wrap() method for this object.
*
* @param object The C instance.
* @param take_copy False if the result should take ownership of the C instance. True if it should take a new copy or ref.
* @result A C++ instance that wraps this C instance.
*
* @relates Gio::FileInputStream
*/
Glib::RefPtr<Gio::FileInputStream> wrap(GFileInputStream* object, bool take_copy = false);
}
#endif /* _GIOMM_FILEINPUTSTREAM_H */

View File

@@ -0,0 +1,284 @@
// Generated by gtkmmproc -- DO NOT MODIFY!
#include <giomm/filemonitor.h>
#include <giomm/private/filemonitor_p.h>
// -*- Mode: C++; indent-tabs-mode: nil; c-basic-offset: 2 -*-
/* Copyright (C) 2007 The gtkmm Development Team
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#include <giomm/file.h>
#include <gio/gio.h>
namespace Gio {
} // namespace Gio
namespace
{
static void FileMonitor_signal_changed_callback(GFileMonitor* self, GFile* p0,GFile* p1,GFileMonitorEvent p2,void* data)
{
using namespace Gio;
typedef sigc::slot< void,const Glib::RefPtr<File>&,const Glib::RefPtr<File>&,FileMonitorEvent > SlotType;
// Do not try to call a signal on a disassociated wrapper.
if(Glib::ObjectBase::_get_current_wrapper((GObject*) self))
{
#ifdef GLIBMM_EXCEPTIONS_ENABLED
try
{
#endif //GLIBMM_EXCEPTIONS_ENABLED
if(sigc::slot_base *const slot = Glib::SignalProxyNormal::data_to_slot(data))
(*static_cast<SlotType*>(slot))(Glib::wrap(p0, true)
, Glib::wrap(p1, true)
, ((FileMonitorEvent)(p2))
);
#ifdef GLIBMM_EXCEPTIONS_ENABLED
}
catch(...)
{
Glib::exception_handlers_invoke();
}
#endif //GLIBMM_EXCEPTIONS_ENABLED
}
}
static const Glib::SignalProxyInfo FileMonitor_signal_changed_info =
{
"changed",
(GCallback) &FileMonitor_signal_changed_callback,
(GCallback) &FileMonitor_signal_changed_callback
};
} // anonymous namespace
namespace Glib
{
Glib::RefPtr<Gio::FileMonitor> wrap(GFileMonitor* object, bool take_copy)
{
return Glib::RefPtr<Gio::FileMonitor>( dynamic_cast<Gio::FileMonitor*> (Glib::wrap_auto ((GObject*)(object), take_copy)) );
//We use dynamic_cast<> in case of multiple inheritance.
}
} /* namespace Glib */
namespace Gio
{
/* The *_Class implementation: */
const Glib::Class& FileMonitor_Class::init()
{
if(!gtype_) // create the GType if necessary
{
// Glib::Class has to know the class init function to clone custom types.
class_init_func_ = &FileMonitor_Class::class_init_function;
// This is actually just optimized away, apparently with no harm.
// Make sure that the parent type has been created.
//CppClassParent::CppObjectType::get_type();
// Create the wrapper type, with the same class/instance size as the base type.
register_derived_type(g_file_monitor_get_type());
// Add derived versions of interfaces, if the C type implements any interfaces:
}
return *this;
}
void FileMonitor_Class::class_init_function(void* g_class, void* class_data)
{
BaseClassType *const klass = static_cast<BaseClassType*>(g_class);
CppClassParent::class_init_function(klass, class_data);
#ifdef GLIBMM_VFUNCS_ENABLED
#endif //GLIBMM_VFUNCS_ENABLED
#ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
klass->changed = &changed_callback;
#endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
}
#ifdef GLIBMM_VFUNCS_ENABLED
#endif //GLIBMM_VFUNCS_ENABLED
#ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
void FileMonitor_Class::changed_callback(GFileMonitor* self, GFile* p0, GFile* p1, GFileMonitorEvent p2)
{
Glib::ObjectBase *const obj_base = static_cast<Glib::ObjectBase*>(
Glib::ObjectBase::_get_current_wrapper((GObject*)self));
// Non-gtkmmproc-generated custom classes implicitly call the default
// Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
// generated classes can use this optimisation, which avoids the unnecessary
// parameter conversions if there is no possibility of the virtual function
// being overridden:
if(obj_base && obj_base->is_derived_())
{
CppObjectType *const obj = dynamic_cast<CppObjectType* const>(obj_base);
if(obj) // This can be NULL during destruction.
{
#ifdef GLIBMM_EXCEPTIONS_ENABLED
try // Trap C++ exceptions which would normally be lost because this is a C callback.
{
#endif //GLIBMM_EXCEPTIONS_ENABLED
// Call the virtual member method, which derived classes might override.
obj->on_changed(Glib::wrap(p0, true)
, Glib::wrap(p1, true)
, ((FileMonitorEvent)(p2))
);
return;
#ifdef GLIBMM_EXCEPTIONS_ENABLED
}
catch(...)
{
Glib::exception_handlers_invoke();
}
#endif //GLIBMM_EXCEPTIONS_ENABLED
}
}
BaseClassType *const base = static_cast<BaseClassType*>(
g_type_class_peek_parent(G_OBJECT_GET_CLASS(self)) // Get the parent class of the object class (The original underlying C class).
);
// Call the original underlying C function:
if(base && base->changed)
(*base->changed)(self, p0, p1, p2);
}
#endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
Glib::ObjectBase* FileMonitor_Class::wrap_new(GObject* object)
{
return new FileMonitor((GFileMonitor*)object);
}
/* The implementation: */
GFileMonitor* FileMonitor::gobj_copy()
{
reference();
return gobj();
}
FileMonitor::FileMonitor(const Glib::ConstructParams& construct_params)
:
Glib::Object(construct_params)
{
}
FileMonitor::FileMonitor(GFileMonitor* castitem)
:
Glib::Object((GObject*)(castitem))
{}
FileMonitor::~FileMonitor()
{}
FileMonitor::CppClassType FileMonitor::filemonitor_class_; // initialize static member
GType FileMonitor::get_type()
{
return filemonitor_class_.init().get_type();
}
GType FileMonitor::get_base_type()
{
return g_file_monitor_get_type();
}
bool FileMonitor::cancel()
{
return g_file_monitor_cancel(gobj());
}
bool FileMonitor::is_cancelled() const
{
return g_file_monitor_is_cancelled(const_cast<GFileMonitor*>(gobj()));
}
void FileMonitor::set_rate_limit(int limit_msecs)
{
g_file_monitor_set_rate_limit(gobj(), limit_msecs);
}
Glib::SignalProxy3< void,const Glib::RefPtr<File>&,const Glib::RefPtr<File>&,FileMonitorEvent > FileMonitor::signal_changed()
{
return Glib::SignalProxy3< void,const Glib::RefPtr<File>&,const Glib::RefPtr<File>&,FileMonitorEvent >(this, &FileMonitor_signal_changed_info);
}
#ifdef GLIBMM_PROPERTIES_ENABLED
Glib::PropertyProxy<int> FileMonitor::property_rate_limit()
{
return Glib::PropertyProxy<int>(this, "rate-limit");
}
#endif //GLIBMM_PROPERTIES_ENABLED
#ifdef GLIBMM_PROPERTIES_ENABLED
Glib::PropertyProxy_ReadOnly<int> FileMonitor::property_rate_limit() const
{
return Glib::PropertyProxy_ReadOnly<int>(this, "rate-limit");
}
#endif //GLIBMM_PROPERTIES_ENABLED
#ifdef GLIBMM_PROPERTIES_ENABLED
Glib::PropertyProxy_ReadOnly<bool> FileMonitor::property_cancelled() const
{
return Glib::PropertyProxy_ReadOnly<bool>(this, "cancelled");
}
#endif //GLIBMM_PROPERTIES_ENABLED
#ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
void Gio::FileMonitor::on_changed(const Glib::RefPtr<File>& file, const Glib::RefPtr<File>& other_file, FileMonitorEvent event_type)
{
BaseClassType *const base = static_cast<BaseClassType*>(
g_type_class_peek_parent(G_OBJECT_GET_CLASS(gobject_)) // Get the parent class of the object class (The original underlying C class).
);
if(base && base->changed)
(*base->changed)(gobj(),Glib::unwrap(file),Glib::unwrap(other_file),((GFileMonitorEvent)(event_type)));
}
#endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
#ifdef GLIBMM_VFUNCS_ENABLED
#endif //GLIBMM_VFUNCS_ENABLED
} // namespace Gio

View File

@@ -0,0 +1,220 @@
// -*- c++ -*-
// Generated by gtkmmproc -- DO NOT MODIFY!
#ifndef _GIOMM_FILEMONITOR_H
#define _GIOMM_FILEMONITOR_H
#include <glibmm.h>
// -*- Mode: C++; indent-tabs-mode: nil; c-basic-offset: 2 -*-
/* Copyright (C) 2007 The gtkmm Development Team
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
//#include <giomm/file.h>
#include <glibmm/object.h>
#ifndef DOXYGEN_SHOULD_SKIP_THIS
typedef struct _GFileMonitor GFileMonitor;
typedef struct _GFileMonitorClass GFileMonitorClass;
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
namespace Gio
{ class FileMonitor_Class; } // namespace Gio
namespace Gio
{
/** @addtogroup giommEnums Enums and Flags */
/**
* @ingroup giommEnums
*/
enum FileMonitorEvent
{
FILE_MONITOR_EVENT_CHANGED,
FILE_MONITOR_EVENT_CHANGES_DONE_HINT,
FILE_MONITOR_EVENT_DELETED,
FILE_MONITOR_EVENT_CREATED,
FILE_MONITOR_EVENT_ATTRIBUTE_CHANGED,
FILE_MONITOR_EVENT_PRE_UNMOUNT,
FILE_MONITOR_EVENT_UNMOUNTED
};
class File;
/** Monitors a file or directory for changes.
* To obtain a FileMonitor for a file or directory, use File::monitor_file() or
* File::monitor_directory().
*
* To get informed about changes to the file or directory you are monitoring,
* connect to signal_changed.
*
* @newin2p16
*/
class FileMonitor : public Glib::Object
{
#ifndef DOXYGEN_SHOULD_SKIP_THIS
public:
typedef FileMonitor CppObjectType;
typedef FileMonitor_Class CppClassType;
typedef GFileMonitor BaseObjectType;
typedef GFileMonitorClass BaseClassType;
private: friend class FileMonitor_Class;
static CppClassType filemonitor_class_;
private:
// noncopyable
FileMonitor(const FileMonitor&);
FileMonitor& operator=(const FileMonitor&);
protected:
explicit FileMonitor(const Glib::ConstructParams& construct_params);
explicit FileMonitor(GFileMonitor* castitem);
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
public:
virtual ~FileMonitor();
#ifndef DOXYGEN_SHOULD_SKIP_THIS
static GType get_type() G_GNUC_CONST;
static GType get_base_type() G_GNUC_CONST;
#endif
///Provides access to the underlying C GObject.
GFileMonitor* gobj() { return reinterpret_cast<GFileMonitor*>(gobject_); }
///Provides access to the underlying C GObject.
const GFileMonitor* gobj() const { return reinterpret_cast<GFileMonitor*>(gobject_); }
///Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
GFileMonitor* gobj_copy();
private:
protected:
public:
/** Cancels a file monitor.
* @return <tt>true</tt> if monitor was cancelled.
*/
bool cancel();
/** Returns: <tt>true</tt> if monitor is canceled. <tt>false</tt> otherwise.
* @return <tt>true</tt> if monitor is canceled. <tt>false</tt> otherwise.
*/
bool is_cancelled() const;
/** Sets the rate limit to which the @a monitor will report
* consecutive change events to the same file.
* @param limit_msecs A integer with the limit in milliseconds to
* poll for changes.
*/
void set_rate_limit(int limit_msecs);
//g_file_monitor_emit_event is for implementations.
/**
* @par Prototype:
* <tt>void on_my_%changed(const Glib::RefPtr<File>& file, const Glib::RefPtr<File>& other_file, FileMonitorEvent event_type)</tt>
*/
Glib::SignalProxy3< void,const Glib::RefPtr<File>&,const Glib::RefPtr<File>&,FileMonitorEvent > signal_changed();
//_WRAP_VFUNC(bool cancel(), cancel);
#ifdef GLIBMM_PROPERTIES_ENABLED
/** The limit of the monitor to watch for changes
*
* You rarely need to use properties because there are get_ and set_ methods for almost all of them.
* @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
* the value of the property changes.
*/
Glib::PropertyProxy<int> property_rate_limit() ;
#endif //#GLIBMM_PROPERTIES_ENABLED
#ifdef GLIBMM_PROPERTIES_ENABLED
/** The limit of the monitor to watch for changes
*
* You rarely need to use properties because there are get_ and set_ methods for almost all of them.
* @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
* the value of the property changes.
*/
Glib::PropertyProxy_ReadOnly<int> property_rate_limit() const;
#endif //#GLIBMM_PROPERTIES_ENABLED
#ifdef GLIBMM_PROPERTIES_ENABLED
/** Whether the monitor has been cancelled.
*
* You rarely need to use properties because there are get_ and set_ methods for almost all of them.
* @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
* the value of the property changes.
*/
Glib::PropertyProxy_ReadOnly<bool> property_cancelled() const;
#endif //#GLIBMM_PROPERTIES_ENABLED
public:
public:
//C++ methods used to invoke GTK+ virtual functions:
#ifdef GLIBMM_VFUNCS_ENABLED
#endif //GLIBMM_VFUNCS_ENABLED
protected:
//GTK+ Virtual Functions (override these to change behaviour):
#ifdef GLIBMM_VFUNCS_ENABLED
#endif //GLIBMM_VFUNCS_ENABLED
//Default Signal Handlers::
#ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
virtual void on_changed(const Glib::RefPtr<File>& file, const Glib::RefPtr<File>& other_file, FileMonitorEvent event_type);
#endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
};
} // namespace Gio
namespace Glib
{
/** A Glib::wrap() method for this object.
*
* @param object The C instance.
* @param take_copy False if the result should take ownership of the C instance. True if it should take a new copy or ref.
* @result A C++ instance that wraps this C instance.
*
* @relates Gio::FileMonitor
*/
Glib::RefPtr<Gio::FileMonitor> wrap(GFileMonitor* object, bool take_copy = false);
}
#endif /* _GIOMM_FILEMONITOR_H */

View File

@@ -0,0 +1,246 @@
// Generated by gtkmmproc -- DO NOT MODIFY!
#include <giomm/filenamecompleter.h>
#include <giomm/private/filenamecompleter_p.h>
// -*- Mode: C++; indent-tabs-mode: nil; c-basic-offset: 2 -*-
/* Copyright (C) 2007 The gtkmm Development Team
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#include <giomm/file.h>
#include <gio/gio.h>
namespace Gio {
} // namespace Gio
namespace
{
static const Glib::SignalProxyInfo FilenameCompleter_signal_got_completion_data_info =
{
"got_completion_data",
(GCallback) &Glib::SignalProxyNormal::slot0_void_callback,
(GCallback) &Glib::SignalProxyNormal::slot0_void_callback
};
} // anonymous namespace
namespace Glib
{
Glib::RefPtr<Gio::FilenameCompleter> wrap(GFilenameCompleter* object, bool take_copy)
{
return Glib::RefPtr<Gio::FilenameCompleter>( dynamic_cast<Gio::FilenameCompleter*> (Glib::wrap_auto ((GObject*)(object), take_copy)) );
//We use dynamic_cast<> in case of multiple inheritance.
}
} /* namespace Glib */
namespace Gio
{
/* The *_Class implementation: */
const Glib::Class& FilenameCompleter_Class::init()
{
if(!gtype_) // create the GType if necessary
{
// Glib::Class has to know the class init function to clone custom types.
class_init_func_ = &FilenameCompleter_Class::class_init_function;
// This is actually just optimized away, apparently with no harm.
// Make sure that the parent type has been created.
//CppClassParent::CppObjectType::get_type();
// Create the wrapper type, with the same class/instance size as the base type.
register_derived_type(g_filename_completer_get_type());
// Add derived versions of interfaces, if the C type implements any interfaces:
}
return *this;
}
void FilenameCompleter_Class::class_init_function(void* g_class, void* class_data)
{
BaseClassType *const klass = static_cast<BaseClassType*>(g_class);
CppClassParent::class_init_function(klass, class_data);
#ifdef GLIBMM_VFUNCS_ENABLED
#endif //GLIBMM_VFUNCS_ENABLED
#ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
klass->got_completion_data = &got_completion_data_callback;
#endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
}
#ifdef GLIBMM_VFUNCS_ENABLED
#endif //GLIBMM_VFUNCS_ENABLED
#ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
void FilenameCompleter_Class::got_completion_data_callback(GFilenameCompleter* self)
{
Glib::ObjectBase *const obj_base = static_cast<Glib::ObjectBase*>(
Glib::ObjectBase::_get_current_wrapper((GObject*)self));
// Non-gtkmmproc-generated custom classes implicitly call the default
// Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
// generated classes can use this optimisation, which avoids the unnecessary
// parameter conversions if there is no possibility of the virtual function
// being overridden:
if(obj_base && obj_base->is_derived_())
{
CppObjectType *const obj = dynamic_cast<CppObjectType* const>(obj_base);
if(obj) // This can be NULL during destruction.
{
#ifdef GLIBMM_EXCEPTIONS_ENABLED
try // Trap C++ exceptions which would normally be lost because this is a C callback.
{
#endif //GLIBMM_EXCEPTIONS_ENABLED
// Call the virtual member method, which derived classes might override.
obj->on_got_completion_data();
return;
#ifdef GLIBMM_EXCEPTIONS_ENABLED
}
catch(...)
{
Glib::exception_handlers_invoke();
}
#endif //GLIBMM_EXCEPTIONS_ENABLED
}
}
BaseClassType *const base = static_cast<BaseClassType*>(
g_type_class_peek_parent(G_OBJECT_GET_CLASS(self)) // Get the parent class of the object class (The original underlying C class).
);
// Call the original underlying C function:
if(base && base->got_completion_data)
(*base->got_completion_data)(self);
}
#endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
Glib::ObjectBase* FilenameCompleter_Class::wrap_new(GObject* object)
{
return new FilenameCompleter((GFilenameCompleter*)object);
}
/* The implementation: */
GFilenameCompleter* FilenameCompleter::gobj_copy()
{
reference();
return gobj();
}
FilenameCompleter::FilenameCompleter(const Glib::ConstructParams& construct_params)
:
Glib::Object(construct_params)
{
}
FilenameCompleter::FilenameCompleter(GFilenameCompleter* castitem)
:
Glib::Object((GObject*)(castitem))
{}
FilenameCompleter::~FilenameCompleter()
{}
FilenameCompleter::CppClassType FilenameCompleter::filenamecompleter_class_; // initialize static member
GType FilenameCompleter::get_type()
{
return filenamecompleter_class_.init().get_type();
}
GType FilenameCompleter::get_base_type()
{
return g_filename_completer_get_type();
}
FilenameCompleter::FilenameCompleter()
:
// Mark this class as non-derived to allow C++ vfuncs to be skipped.
Glib::ObjectBase(0),
Glib::Object(Glib::ConstructParams(filenamecompleter_class_.init()))
{
}
Glib::RefPtr<FilenameCompleter> FilenameCompleter::create()
{
return Glib::RefPtr<FilenameCompleter>( new FilenameCompleter() );
}
std::string FilenameCompleter::get_completion_suffix(const std::string& initial_text) const
{
return Glib::convert_return_gchar_ptr_to_stdstring(g_filename_completer_get_completion_suffix(const_cast<GFilenameCompleter*>(gobj()), initial_text.c_str()));
}
Glib::StringArrayHandle FilenameCompleter::get_completions(const std::string& initial_text) const
{
return Glib::StringArrayHandle(g_filename_completer_get_completions(const_cast<GFilenameCompleter*>(gobj()), initial_text.c_str()));
}
void FilenameCompleter::set_dirs_only(bool dirs_only)
{
g_filename_completer_set_dirs_only(gobj(), static_cast<int>(dirs_only));
}
Glib::SignalProxy0< void > FilenameCompleter::signal_got_completion_data()
{
return Glib::SignalProxy0< void >(this, &FilenameCompleter_signal_got_completion_data_info);
}
#ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
void Gio::FilenameCompleter::on_got_completion_data()
{
BaseClassType *const base = static_cast<BaseClassType*>(
g_type_class_peek_parent(G_OBJECT_GET_CLASS(gobject_)) // Get the parent class of the object class (The original underlying C class).
);
if(base && base->got_completion_data)
(*base->got_completion_data)(gobj());
}
#endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
#ifdef GLIBMM_VFUNCS_ENABLED
#endif //GLIBMM_VFUNCS_ENABLED
} // namespace Gio

View File

@@ -0,0 +1,171 @@
// -*- c++ -*-
// Generated by gtkmmproc -- DO NOT MODIFY!
#ifndef _GIOMM_FILENAMECOMPLETER_H
#define _GIOMM_FILENAMECOMPLETER_H
#include <glibmm.h>
// -*- Mode: C++; indent-tabs-mode: nil; c-basic-offset: 2 -*-
/* Copyright (C) 2007 The gtkmm Development Team
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
//#include <giomm/file.h>
#include <glibmm/object.h>
#ifndef DOXYGEN_SHOULD_SKIP_THIS
typedef struct _GFilenameCompleter GFilenameCompleter;
typedef struct _GFilenameCompleterClass GFilenameCompleterClass;
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
namespace Gio
{ class FilenameCompleter_Class; } // namespace Gio
namespace Gio
{
class File;
/** Completes partial file and directory names given a partial string by looking in the file system for clues.
* Can return a list of possible completion strings for widget implementation.
*
* @newin2p16
*/
class FilenameCompleter : public Glib::Object
{
#ifndef DOXYGEN_SHOULD_SKIP_THIS
public:
typedef FilenameCompleter CppObjectType;
typedef FilenameCompleter_Class CppClassType;
typedef GFilenameCompleter BaseObjectType;
typedef GFilenameCompleterClass BaseClassType;
private: friend class FilenameCompleter_Class;
static CppClassType filenamecompleter_class_;
private:
// noncopyable
FilenameCompleter(const FilenameCompleter&);
FilenameCompleter& operator=(const FilenameCompleter&);
protected:
explicit FilenameCompleter(const Glib::ConstructParams& construct_params);
explicit FilenameCompleter(GFilenameCompleter* castitem);
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
public:
virtual ~FilenameCompleter();
#ifndef DOXYGEN_SHOULD_SKIP_THIS
static GType get_type() G_GNUC_CONST;
static GType get_base_type() G_GNUC_CONST;
#endif
///Provides access to the underlying C GObject.
GFilenameCompleter* gobj() { return reinterpret_cast<GFilenameCompleter*>(gobject_); }
///Provides access to the underlying C GObject.
const GFilenameCompleter* gobj() const { return reinterpret_cast<GFilenameCompleter*>(gobject_); }
///Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
GFilenameCompleter* gobj_copy();
private:
protected:
FilenameCompleter();
public:
static Glib::RefPtr<FilenameCompleter> create();
/** Obtains a completion for @a initial_text from @a completer.
* @param initial_text Text to be completed.
* @return A completed string, or <tt>0</tt> if no completion exists.
* This string is not owned by GIO, so remember to Glib::free() it
* when finished.
*/
std::string get_completion_suffix(const std::string& initial_text) const;
/** Gets an array of completion strings for a given initial text.
* @param initial_text Text to be completed.
* @return Array of strings with possible completions for @a initial_text.
* This array must be freed by Glib::strfreev() when finished.
*/
Glib::StringArrayHandle get_completions(const std::string& initial_text) const;
/** If @a dirs_only is <tt>true</tt>, @a completer will only
* complete directory names, and not file names.
* @param dirs_only A <tt>bool</tt>.
*/
void set_dirs_only(bool dirs_only = true);
/**
* @par Prototype:
* <tt>void on_my_%got_completion_data()</tt>
*/
Glib::SignalProxy0< void > signal_got_completion_data();
public:
public:
//C++ methods used to invoke GTK+ virtual functions:
#ifdef GLIBMM_VFUNCS_ENABLED
#endif //GLIBMM_VFUNCS_ENABLED
protected:
//GTK+ Virtual Functions (override these to change behaviour):
#ifdef GLIBMM_VFUNCS_ENABLED
#endif //GLIBMM_VFUNCS_ENABLED
//Default Signal Handlers::
#ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
virtual void on_got_completion_data();
#endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
};
} // namespace Gio
namespace Glib
{
/** A Glib::wrap() method for this object.
*
* @param object The C instance.
* @param take_copy False if the result should take ownership of the C instance. True if it should take a new copy or ref.
* @result A C++ instance that wraps this C instance.
*
* @relates Gio::FilenameCompleter
*/
Glib::RefPtr<Gio::FilenameCompleter> wrap(GFilenameCompleter* object, bool take_copy = false);
}
#endif /* _GIOMM_FILENAMECOMPLETER_H */

View File

@@ -0,0 +1,256 @@
// Generated by gtkmmproc -- DO NOT MODIFY!
#include <giomm/fileoutputstream.h>
#include <giomm/private/fileoutputstream_p.h>
// -*- Mode: C++; indent-tabs-mode: nil; c-basic-offset: 2 -*-
/* Copyright (C) 2007 The gtkmm Development Team
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#include <gio/gio.h>
#include <glib.h>
#include <glibmm/error.h>
#include <glibmm/exceptionhandler.h>
#include "slot_async.h"
namespace Gio
{
#ifdef GLIBMM_EXCEPTIONS_ENABLED
Glib::RefPtr<FileInfo> FileOutputStream::query_info(const Glib::RefPtr<Cancellable>& cancellable, const std::string& attributes)
#else
Glib::RefPtr<FileInfo> FileOutputStream::query_info(const Glib::RefPtr<Cancellable>& cancellable, const std::string& attributes, std::auto_ptr<Glib::Error>& error)
#endif //GLIBMM_EXCEPTIONS_ENABLED
{
GError* gerror = 0;
Glib::RefPtr<FileInfo> retvalue = Glib::wrap(g_file_output_stream_query_info(gobj(), g_strdup((attributes).c_str()), const_cast<GCancellable*>(Glib::unwrap(cancellable)), &(gerror)));
#ifdef GLIBMM_EXCEPTIONS_ENABLED
if(gerror)
::Glib::Error::throw_exception(gerror);
#else
if(gerror)
error = ::Glib::Error::throw_exception(gerror);
#endif //GLIBMM_EXCEPTIONS_ENABLED
if(retvalue)
retvalue->reference(); //The function does not do a ref for us.
return retvalue;
}
#ifdef GLIBMM_EXCEPTIONS_ENABLED
Glib::RefPtr<FileInfo> FileOutputStream::query_info(const std::string& attributes)
#else
Glib::RefPtr<FileInfo> FileOutputStream::query_info(const std::string& attributes, std::auto_ptr<Glib::Error>& error)
#endif //GLIBMM_EXCEPTIONS_ENABLED
{
GError* gerror = 0;
Glib::RefPtr<FileInfo> retvalue = Glib::wrap(g_file_output_stream_query_info(gobj(), g_strdup((attributes).c_str()), NULL, &(gerror)));
#ifdef GLIBMM_EXCEPTIONS_ENABLED
if(gerror)
::Glib::Error::throw_exception(gerror);
#else
if(gerror)
error = ::Glib::Error::throw_exception(gerror);
#endif //GLIBMM_EXCEPTIONS_ENABLED
if(retvalue)
retvalue->reference(); //The function does not do a ref for us.
return retvalue;
}
void
FileOutputStream::query_info_async(const SlotAsyncReady& slot, const Glib::RefPtr<Cancellable>& cancellable, const std::string& attributes, int io_priority)
{
// 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_output_stream_query_info_async(gobj(),
const_cast<char*>(attributes.c_str()),
io_priority,
cancellable->gobj(),
&SignalProxy_async_callback,
slot_copy);
}
void
FileOutputStream::query_info_async(const SlotAsyncReady& slot, const std::string& attributes, int io_priority)
{
// 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_output_stream_query_info_async(gobj(),
const_cast<char*>(attributes.c_str()),
io_priority,
NULL,
&SignalProxy_async_callback,
slot_copy);
}
} // namespace Gio
namespace
{
} // anonymous namespace
namespace Glib
{
Glib::RefPtr<Gio::FileOutputStream> wrap(GFileOutputStream* object, bool take_copy)
{
return Glib::RefPtr<Gio::FileOutputStream>( dynamic_cast<Gio::FileOutputStream*> (Glib::wrap_auto ((GObject*)(object), take_copy)) );
//We use dynamic_cast<> in case of multiple inheritance.
}
} /* namespace Glib */
namespace Gio
{
/* The *_Class implementation: */
const Glib::Class& FileOutputStream_Class::init()
{
if(!gtype_) // create the GType if necessary
{
// Glib::Class has to know the class init function to clone custom types.
class_init_func_ = &FileOutputStream_Class::class_init_function;
// This is actually just optimized away, apparently with no harm.
// Make sure that the parent type has been created.
//CppClassParent::CppObjectType::get_type();
// Create the wrapper type, with the same class/instance size as the base type.
register_derived_type(g_file_output_stream_get_type());
// Add derived versions of interfaces, if the C type implements any interfaces:
Seekable::add_interface(get_type());
}
return *this;
}
void FileOutputStream_Class::class_init_function(void* g_class, void* class_data)
{
BaseClassType *const klass = static_cast<BaseClassType*>(g_class);
CppClassParent::class_init_function(klass, class_data);
#ifdef GLIBMM_VFUNCS_ENABLED
#endif //GLIBMM_VFUNCS_ENABLED
#ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
#endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
}
#ifdef GLIBMM_VFUNCS_ENABLED
#endif //GLIBMM_VFUNCS_ENABLED
#ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
#endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
Glib::ObjectBase* FileOutputStream_Class::wrap_new(GObject* object)
{
return new FileOutputStream((GFileOutputStream*)object);
}
/* The implementation: */
GFileOutputStream* FileOutputStream::gobj_copy()
{
reference();
return gobj();
}
FileOutputStream::FileOutputStream(const Glib::ConstructParams& construct_params)
:
Gio::OutputStream(construct_params)
{
}
FileOutputStream::FileOutputStream(GFileOutputStream* castitem)
:
Gio::OutputStream((GOutputStream*)(castitem))
{}
FileOutputStream::~FileOutputStream()
{}
FileOutputStream::CppClassType FileOutputStream::fileoutputstream_class_; // initialize static member
GType FileOutputStream::get_type()
{
return fileoutputstream_class_.init().get_type();
}
GType FileOutputStream::get_base_type()
{
return g_file_output_stream_get_type();
}
#ifdef GLIBMM_EXCEPTIONS_ENABLED
Glib::RefPtr<FileInfo> FileOutputStream::query_info_finish(const Glib::RefPtr<AsyncResult>& result)
#else
Glib::RefPtr<FileInfo> FileOutputStream::query_info_finish(const Glib::RefPtr<AsyncResult>& result, std::auto_ptr<Glib::Error>& error)
#endif //GLIBMM_EXCEPTIONS_ENABLED
{
GError* gerror = 0;
Glib::RefPtr<FileInfo> retvalue = Glib::wrap(g_file_output_stream_query_info_finish(gobj(), Glib::unwrap(result), &(gerror)));
#ifdef GLIBMM_EXCEPTIONS_ENABLED
if(gerror)
::Glib::Error::throw_exception(gerror);
#else
if(gerror)
error = ::Glib::Error::throw_exception(gerror);
#endif //GLIBMM_EXCEPTIONS_ENABLED
if(retvalue)
retvalue->reference(); //The function does not do a ref for us.
return retvalue;
}
std::string FileOutputStream::get_etag() const
{
return Glib::convert_return_gchar_ptr_to_stdstring(g_file_output_stream_get_etag(const_cast<GFileOutputStream*>(gobj())));
}
#ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
#endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
#ifdef GLIBMM_VFUNCS_ENABLED
#endif //GLIBMM_VFUNCS_ENABLED
} // namespace Gio

View File

@@ -0,0 +1,267 @@
// -*- c++ -*-
// Generated by gtkmmproc -- DO NOT MODIFY!
#ifndef _GIOMM_FILEOUTPUTSTREAM_H
#define _GIOMM_FILEOUTPUTSTREAM_H
#include <glibmm.h>
// -*- Mode: C++; indent-tabs-mode: nil; c-basic-offset: 2 -*-
/* Copyright (C) 2007 The gtkmm Development Team
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#include <giomm/outputstream.h>
#include <giomm/seekable.h>
#include <giomm/fileinfo.h>
#include <glibmm/object.h>
#include <glibmm/iochannel.h>
#ifndef DOXYGEN_SHOULD_SKIP_THIS
typedef struct _GFileOutputStream GFileOutputStream;
typedef struct _GFileOutputStreamClass GFileOutputStreamClass;
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
namespace Gio
{ class FileOutputStream_Class; } // namespace Gio
namespace Gio
{
/** FileOutputStream provides output streams that write their content to a file.
*
* FileOutputStream implements Seekable, which allows the output stream to jump
* to arbitrary positions in the file and to truncate the file, provided the
* file system of the file supports these operations.
* Use the methods of the Seekable base class for seeking and positioning.
*
* @ingroup Streams
*
* @newin2p16
*/
class FileOutputStream
: public OutputStream,
public Seekable
{
#ifndef DOXYGEN_SHOULD_SKIP_THIS
public:
typedef FileOutputStream CppObjectType;
typedef FileOutputStream_Class CppClassType;
typedef GFileOutputStream BaseObjectType;
typedef GFileOutputStreamClass BaseClassType;
private: friend class FileOutputStream_Class;
static CppClassType fileoutputstream_class_;
private:
// noncopyable
FileOutputStream(const FileOutputStream&);
FileOutputStream& operator=(const FileOutputStream&);
protected:
explicit FileOutputStream(const Glib::ConstructParams& construct_params);
explicit FileOutputStream(GFileOutputStream* castitem);
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
public:
virtual ~FileOutputStream();
#ifndef DOXYGEN_SHOULD_SKIP_THIS
static GType get_type() G_GNUC_CONST;
static GType get_base_type() G_GNUC_CONST;
#endif
///Provides access to the underlying C GObject.
GFileOutputStream* gobj() { return reinterpret_cast<GFileOutputStream*>(gobject_); }
///Provides access to the underlying C GObject.
const GFileOutputStream* gobj() const { return reinterpret_cast<GFileOutputStream*>(gobject_); }
///Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
GFileOutputStream* gobj_copy();
private:
public:
/** Queries a file output stream for the given @a attributes .
* This function blocks while querying the stream. For the asynchronous
* version of this function, see query_info_async().
* While the stream is blocked, the stream will set the pending flag
* internally, and any other operations on the stream will throw a Gio::Error with
* PENDING.
*
* Can fail if the stream was already closed (with a
* CLOSED error), the stream has pending operations (with a PENDING error),
* or if querying info is not supported for
* the stream's interface (with a NOT_SUPPORTED error). In
* all cases of failure, an empty RefPtr will be returned.
*
* The operation can be cancelled by triggering the cancellable object from another thread. If the operation
* was cancelled, a Gio::Error with CANCELLED may be thrown, and an empty RefPtr will
* be returned.
*
* @param cancellable A Cancellable object.
* @param attributes A file attribute query string.
* @return A FileInfo for the stream, or an empty RefPtr on error.
*/
#ifdef GLIBMM_EXCEPTIONS_ENABLED
Glib::RefPtr<FileInfo> query_info(const Glib::RefPtr<Cancellable>& cancellable, const std::string& attributes = "*");
#else
Glib::RefPtr<FileInfo> query_info(const Glib::RefPtr<Cancellable>& cancellable, const std::string& attributes, std::auto_ptr<Glib::Error>& error);
#endif //GLIBMM_EXCEPTIONS_ENABLED
/** Queries a file output stream for the given @a attributes .
* This function blocks while querying the stream. For the asynchronous
* version of this function, see query_info_async().
* While the stream is blocked, the stream will set the pending flag
* internally, and any other operations on the stream will throw a Gio::Error with
* PENDING.
*
* Can fail if the stream was already closed (with a CLOSED error),
* the stream has pending operations (with an PENDING error),
* or if querying info is not supported for
* the stream's interface (with a NOT_SUPPORTED error). In
* all cases of failure, an empty RefPtr will be returned.
*
* The operation can be cancelled by triggering the cancellable object from another thread. If the operation
* was cancelled, a Gio::Error with CANCELLED may be thrown, and an empty RefPtr will
* be returned.
*
* @param cancellable A Cancellable object.
* @param attributes A file attribute query string.
* @return A FileInfo for the stream, or an empty RefPtr on error.
*/
#ifdef GLIBMM_EXCEPTIONS_ENABLED
Glib::RefPtr<FileInfo> query_info(const std::string& attributes = "*");
#else
Glib::RefPtr<FileInfo> query_info(const std::string& attributes, std::auto_ptr<Glib::Error>& error);
#endif //GLIBMM_EXCEPTIONS_ENABLED
/** Queries the stream information asynchronously.
* When the operation is finished @a slot will be called.
* You can then call query_info_finish()
* to get the result of the operation.
*
* For the synchronous version of this function,
* see query_info().
*
* If @a cancellable is not %NULL, then the operation can be cancelled by
* triggering the cancellable object from another thread. If the operation
* was cancelled, a Gio::Error with CANCELLED may be thrown
*
* @param slot Callback to call when the request is satisfied.
* @param cancellable A Cancellable object.
* @param attributes A file attribute query string.
* @param io_priority The <io-priority of the request.
*/
void query_info_async(const SlotAsyncReady& slot, const Glib::RefPtr<Cancellable>& cancellable, const std::string& attributes = "*", int io_priority = Glib::PRIORITY_DEFAULT);
/** Queries the stream information asynchronously.
* When the operation is finished @a slot will be called.
* You can then call query_info_finish()
* to get the result of the operation.
*
* For the synchronous version of this function,
* see query_info().
*
* @param slot Callback to call when the request is satisfied.
* @param attributes A file attribute query string.
* @param io_priority The <io-priority of the request.
*/
void query_info_async(const SlotAsyncReady& slot, const std::string& attributes = "*", int io_priority = Glib::PRIORITY_DEFAULT);
/** Finalizes the asynchronous query started
* by g_file_output_stream_query_info_async().
* @param result A AsyncResult.
* @return A FileInfo for the finished query.
*/
#ifdef GLIBMM_EXCEPTIONS_ENABLED
Glib::RefPtr<FileInfo> query_info_finish(const Glib::RefPtr<AsyncResult>& result);
#else
Glib::RefPtr<FileInfo> query_info_finish(const Glib::RefPtr<AsyncResult>& result, std::auto_ptr<Glib::Error>& error);
#endif //GLIBMM_EXCEPTIONS_ENABLED
/** Gets the entity tag for the file when it has been written.
* This must be called after the stream has been written
* and closed, as the etag can change while writing.
* @return The entity tag for the stream.
*/
std::string get_etag() const;
//These seem to be just C convenience functions - they are already in the Seekable base class:
//See http://bugzilla.gnome.org/show_bug.cgi?id=509990
// _WRAP_METHOD(goffset tell() const, g_file_output_stream_tell)
// _WRAP_METHOD(bool can_seek() const, g_file_output_stream_can_seek)
// _WRAP_METHOD(bool seek(goffset offset, Glib::SeekType type, const Glib::RefPtr<Cancellable>& cancellable),
// g_file_output_stream_seek,
// errthrow)
// _WRAP_METHOD(bool can_truncate() const, g_file_output_stream_can_truncate)
// _WRAP_METHOD(bool truncate(goffset size, const Glib::RefPtr<Cancellable>& cancellable),
// g_file_output_stream_truncate,
// errthrow)
public:
public:
//C++ methods used to invoke GTK+ virtual functions:
#ifdef GLIBMM_VFUNCS_ENABLED
#endif //GLIBMM_VFUNCS_ENABLED
protected:
//GTK+ Virtual Functions (override these to change behaviour):
#ifdef GLIBMM_VFUNCS_ENABLED
#endif //GLIBMM_VFUNCS_ENABLED
//Default Signal Handlers::
#ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
#endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
};
} // namespace Gio
namespace Glib
{
/** A Glib::wrap() method for this object.
*
* @param object The C instance.
* @param take_copy False if the result should take ownership of the C instance. True if it should take a new copy or ref.
* @result A C++ instance that wraps this C instance.
*
* @relates Gio::FileOutputStream
*/
Glib::RefPtr<Gio::FileOutputStream> wrap(GFileOutputStream* object, bool take_copy = false);
}
#endif /* _GIOMM_FILEOUTPUTSTREAM_H */

View File

@@ -0,0 +1,168 @@
// Generated by gtkmmproc -- DO NOT MODIFY!
#include <giomm/filterinputstream.h>
#include <giomm/private/filterinputstream_p.h>
// -*- Mode: C++; indent-tabs-mode: nil; c-basic-offset: 2 -*-
/* Copyright (C) 2008 The gtkmm Development Team
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#include <gio/gio.h>
namespace
{
} // anonymous namespace
namespace Glib
{
Glib::RefPtr<Gio::FilterInputStream> wrap(GFilterInputStream* object, bool take_copy)
{
return Glib::RefPtr<Gio::FilterInputStream>( dynamic_cast<Gio::FilterInputStream*> (Glib::wrap_auto ((GObject*)(object), take_copy)) );
//We use dynamic_cast<> in case of multiple inheritance.
}
} /* namespace Glib */
namespace Gio
{
/* The *_Class implementation: */
const Glib::Class& FilterInputStream_Class::init()
{
if(!gtype_) // create the GType if necessary
{
// Glib::Class has to know the class init function to clone custom types.
class_init_func_ = &FilterInputStream_Class::class_init_function;
// This is actually just optimized away, apparently with no harm.
// Make sure that the parent type has been created.
//CppClassParent::CppObjectType::get_type();
// Create the wrapper type, with the same class/instance size as the base type.
register_derived_type(g_filter_input_stream_get_type());
// Add derived versions of interfaces, if the C type implements any interfaces:
}
return *this;
}
void FilterInputStream_Class::class_init_function(void* g_class, void* class_data)
{
BaseClassType *const klass = static_cast<BaseClassType*>(g_class);
CppClassParent::class_init_function(klass, class_data);
#ifdef GLIBMM_VFUNCS_ENABLED
#endif //GLIBMM_VFUNCS_ENABLED
#ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
#endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
}
#ifdef GLIBMM_VFUNCS_ENABLED
#endif //GLIBMM_VFUNCS_ENABLED
#ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
#endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
Glib::ObjectBase* FilterInputStream_Class::wrap_new(GObject* object)
{
return new FilterInputStream((GFilterInputStream*)object);
}
/* The implementation: */
GFilterInputStream* FilterInputStream::gobj_copy()
{
reference();
return gobj();
}
FilterInputStream::FilterInputStream(const Glib::ConstructParams& construct_params)
:
Gio::InputStream(construct_params)
{
}
FilterInputStream::FilterInputStream(GFilterInputStream* castitem)
:
Gio::InputStream((GInputStream*)(castitem))
{}
FilterInputStream::~FilterInputStream()
{}
FilterInputStream::CppClassType FilterInputStream::filterinputstream_class_; // initialize static member
GType FilterInputStream::get_type()
{
return filterinputstream_class_.init().get_type();
}
GType FilterInputStream::get_base_type()
{
return g_filter_input_stream_get_type();
}
Glib::RefPtr<InputStream> FilterInputStream::get_base_stream()
{
Glib::RefPtr<InputStream> retvalue = Glib::wrap(g_filter_input_stream_get_base_stream(gobj()));
if(retvalue)
retvalue->reference(); //The function does not do a ref for us.
return retvalue;
}
Glib::RefPtr<const InputStream> FilterInputStream::get_base_stream() const
{
return const_cast<FilterInputStream*>(this)->get_base_stream();
}
#ifdef GLIBMM_PROPERTIES_ENABLED
Glib::PropertyProxy_ReadOnly< Glib::RefPtr<InputStream> > FilterInputStream::property_base_stream() const
{
return Glib::PropertyProxy_ReadOnly< Glib::RefPtr<InputStream> >(this, "base-stream");
}
#endif //GLIBMM_PROPERTIES_ENABLED
#ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
#endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
#ifdef GLIBMM_VFUNCS_ENABLED
#endif //GLIBMM_VFUNCS_ENABLED
} // namespace Gio

Some files were not shown because too many files have changed in this diff Show More