browser-eal/include/gwebhistorylist.h

Go to the documentation of this file.
00001 /* ***** BEGIN LICENSE BLOCK *****
00002  * Version: MPL 1.1
00003  *
00004  * The contents of this file are subject to the Mozilla Public License Version
00005  * 1.1 (the "License"); you may not use this file except in compliance with
00006  * the License. You may obtain a copy of the License at
00007  * http://www.mozilla.org/MPL/
00008  *
00009  * Software distributed under the License is distributed on an "AS IS" basis,
00010  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
00011  * for the specific language governing rights and limitations under the
00012  * License.
00013  *
00014  * The Original Code is the EAL package.
00015  *
00016  * The Initial Developer of the Original Code is Nokia Corporation.
00017  * Portions created by the Initial Developer are Copyright (C) 2005
00018  * the Initial Developer. All Rights Reserved.
00019  *
00020  * Contact: Leonid Zolotarev <leonid.zolotarev@nokia.com>
00021  *
00022  * ***** END LICENSE BLOCK ***** */
00023 
00024 #include <glib-object.h>
00025 
00026 #ifndef __GWEBHISTORYLIST_H__
00027 #define __GWEBHISTORYLIST_H__
00028 
00029 G_BEGIN_DECLS
00030 
00034 #define G_TYPE_WEB_HISTORY_LIST             (g_web_history_list_get_type ())
00035 #define G_WEB_HISTORY_LIST(obj)             (G_TYPE_CHECK_INSTANCE_CAST ((obj), G_TYPE_WEB_HISTORY_LIST, GWebHistoryList))
00036 #define G_WEB_HISTORY_LIST_CLASS(vtable)    (G_TYPE_CHECK_CLASS_CAST ((vtable), G_TYPE_WEB_HISTORY_LIST, GWebHistoryListIface))
00037 #define G_IS_WEB_HISTORY_LIST(obj)          (G_TYPE_CHECK_INSTANCE_TYPE ((obj), G_TYPE_WEB_HISTORY_LIST))
00038 #define G_IS_WEB_HISTORY_LIST_CLASS(vtable) (G_TYPE_CHECK_CLASS_TYPE ((vtable), G_TYPE_WEB_HISTORY_LIST))
00039 #define G_WEB_HISTORY_LIST_GET_CLASS(inst)  (G_TYPE_INSTANCE_GET_INTERFACE ((inst), G_TYPE_WEB_HISTORY_LIST, GWebHistoryListIface))
00040 
00041 typedef struct _GWebHistoryList GWebHistoryList; /* dummy object */
00042 typedef struct _GWebHistoryListIface GWebHistoryListIface;
00043 
00047 struct _GWebHistoryListIface {
00048         GTypeInterface parent;
00049 
00050         void (*destroy) (GWebHistoryList *self);
00051         void (*delete_item) (GWebHistoryList *self, GObject *item);
00052         GObject* (*get_items) (GWebHistoryList *self);
00053         gint (*get_items_count) (GWebHistoryList *self);
00054         const gchar* (*get_item_title) (GWebHistoryList *self, gint pos);
00055         const gchar* (*get_item_url) (GWebHistoryList *self, gint pos);
00056         GTime (*get_item_time) (GWebHistoryList *self, gint pos);
00057 };
00058 
00059 GType g_web_history_list_get_type (void);
00060 
00061 void g_web_history_list_destroy (GWebHistoryList *self);
00062 void g_web_history_list_delete_item (GWebHistoryList *self, GObject *item);
00063 GObject* g_web_history_list_get_items (GWebHistoryList *self);
00064 gint g_web_history_list_get_items_count (GWebHistoryList *self);
00065 const gchar* g_web_history_list_get_item_title (GWebHistoryList *self, gint pos);
00066 const gchar* g_web_history_list_get_item_url (GWebHistoryList *self, gint pos);
00067 GTime g_web_history_list_get_item_time (GWebHistoryList *self, gint pos);
00068 
00069 G_END_DECLS
00070 
00071 #endif /* __GWEBHISTORYLIST_H__ */

Generated on Tue Sep 25 10:37:04 2007 for browser-eal by  doxygen 1.5.1