[gnomemm] gnome-vfsmm started - progress



I have wrapped GnomeVFSHandle and added an example that uses it:
http://cvs.gnome.org/lxr/source/gnomemm/gnome-vfsmm/examples/simple/main.cc
(That URL should exist soon)

This is based on the "Simple Sample Program" in the gnome-vfs docs
(configure with --enable-gtkdocs - they are not online yet).

I feel that the whole idea of a Handle might be bit C-like. Maybe these
methods should be part of the Url class instead, or somewhere else.
There are lots of gnome-vfs functions that have 2 versions, one taking a
string url and one taking a GnomeVFSUrl instance. I have put the strings
ones in Handle, and the URL ones in Gnome::Vfs::Url, for now. I'd like
it if someone else explored this too.

And we need to find more C examples to translate to C++.

On Tue, 2003-03-11 at 10:26, Murray Cumming Comneon com wrote:
> Come on, this is fun and interesting. You get to explore a whole new API
and
> write impressive examples. If you always wanted to get involved, this is a
> great opportunity. Nobody expects perfection immediately and everyone will
> be thankful for a little progress.
> 
> Murray Cumming
> murrayc usa net
> www.murrayc.com
> 
> > -----Original Message-----
> > From: Cumming Murray (COMNEON Linz) 
> > Sent: Freitag, 7. März 2003 09:09
> > To: gnomemm-list gnome org
> > Cc: gnome-vfs-list gnome org
> > Subject: [gnomemm] gnome-vfsmm started
> > 
> > 
> > In gnomemm/gnome-vfsmm in gnome's cvs you can now find the 
> > build skeleton
> > and a few .h/.cc and .hg/.ccg files for gnome-vfsmm.
> > 
> > My time is limited so I would really like it if other people 
> > started to hack
> > on this, improving the stuff that I've thrown together 
> > quickly and/or adding
> > new wrappers. We should aim to create some simple examples 
> > that build and
> > run - so it would make sense to find some C examples to port.
> > 
> > gnome-vfs doesn't seem to have much similarity to other GTK+ or GNOME
> > libraries, but gtkmm has macros for wrapping simple structs, both
> > reference-counted and non reference-counted. So far I have 
> > noticed these
> > issues:
> > 
> > - gnome-vfs doesn't register it's enums as gtypes so our _WRAP_ENUM()
> > doesn't work.
> >   Maybe we can fix gnome-vfs without breaking its API.
> > - I have wrapped some macros, but they don't implement 
> > operator==. I think
> > we have an extra gtkmmproc macro
> >   for this, but I haven't taken the time to find it by 
> > looking at similar
> > wrappers in gtkmm and gnomemm.
> > - Some of the headers in gnome-vfs/libgnomevfs (such as the
> > gnome-vfs-metadata.h) are private and not installed, 
> >   so don't waster your time wrapping them.
> > 
> > Obviously it will take us some time to figure out how 
> > gnome-vfs is supposed
> > to work and how we should wrap it, but we need to start somewhere.
> > 
> > Murray Cumming
> > murrayc usa net
> > www.murrayc.com



Murray Cumming
murrayc usa net
www.murrayc.com




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]