2008-11-27  Stephane Delcroix  <sdelcroix@novell.com>

	* exiv2-previewmanager.h|cpp: _get_previewImage ()

svn path=/trunk/exiv2-sharp/; revision=120178
This commit is contained in:
Stephane Delcroix 2008-11-27 20:12:15 +00:00
Родитель eee84123fb
Коммит cc88b15179
3 изменённых файлов: 21 добавлений и 0 удалений

Просмотреть файл

@ -1,3 +1,7 @@
2008-11-27 Stephane Delcroix <sdelcroix@novell.com>
* exiv2-previewmanager.h|cpp: _get_previewImage ()
2008-11-27 Stephane Delcroix <sdelcroix@novell.com>
* exiv2-previewimage.h|cpp: map Exiv2::PreviewImage

Просмотреть файл

@ -34,6 +34,7 @@
#include "exiv2-previewmanager.h"
#include "exiv2-previewmanager-private.h"
#include "exiv2-previewproperties-private.h"
#include "exiv2-previewimage-private.h"
G_BEGIN_DECLS
G_DEFINE_TYPE (Exiv2PreviewManager, exiv2_previewmanager, G_TYPE_OBJECT);
@ -83,4 +84,17 @@ exiv2_previewmanager_get_previewProperties (Exiv2PreviewManager *self)
}
Exiv2PreviewImage*
exiv2_previewmanager_get_previewImage (Exiv2PreviewManager *self, Exiv2PreviewProperties *prop)
{
g_return_val_if_fail (EXIV2_IS_PREVIEWMANAGER (self), NULL);
Exiv2PreviewImage *preview;
preview = EXIV2_PREVIEWIMAGE (g_object_new (EXIV2_TYPE_PREVIEWIMAGE, NULL));
const Exiv2::PreviewProperties pprop = *(prop->priv->prop);
preview->priv->prev = &(self->priv->manager->getPreviewImage (pprop));
return preview;
}
G_END_DECLS

Просмотреть файл

@ -32,6 +32,8 @@
#include <glib-object.h>
#include "exiv2-image.h"
#include "exiv2-previewimage.h"
#include "exiv2-previewproperties.h"
G_BEGIN_DECLS
@ -65,6 +67,7 @@ GType exiv2_previewmanager_get_type (void);
Exiv2PreviewManager* exiv2_previewmanager_new (Exiv2Image *image);
GList* exiv2_previewmanager_get_previewProperties (Exiv2PreviewManager *self);
Exiv2PreviewImage* exiv2_previewmanager_get_previewImage (Exiv2PreviewManager *self, Exiv2PreviewProperties *prop);
G_END_DECLS