browser-eal/src/gwebhistorylist.c

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 "gwebhistorylist.h"
00025 
00026 /* GWebHistoryListIface */
00027 
00028 static void
00029 g_web_history_list_base_init (gpointer g_class)
00030 {
00031         static gboolean initialized = FALSE;
00032 
00033         if (!initialized) {
00034                 /* create interface signals here. */
00035                 initialized = TRUE;
00036         }
00037 }
00038 
00039 GType
00040 g_web_history_list_get_type (void)
00041 {
00042     static GType type = 0;
00043     if (type == 0) {
00044         static const GTypeInfo info = {
00045             sizeof (GWebHistoryListIface),
00046             g_web_history_list_base_init,   /* base_init */
00047             NULL,   /* base_finalize */
00048             NULL,   /* class_init */
00049             NULL,   /* class_finalize */
00050             NULL,   /* class_data */
00051             0,
00052             0,      /* n_preallocs */
00053             NULL    /* instance_init */
00054         };
00055         type = g_type_register_static (G_TYPE_INTERFACE, "GWebHistoryList", &info, 0);
00056     }
00057     return type;
00058 }
00059 
00060 void
00061 g_web_history_list_destroy (GWebHistoryList *self)
00062 {
00063         G_WEB_HISTORY_LIST_GET_CLASS (self)->destroy (self);
00064 }
00065 
00066 void
00067 g_web_history_list_delete_item (GWebHistoryList *self, GObject *item)
00068 {
00069         G_WEB_HISTORY_LIST_GET_CLASS (self)->delete_item (self, item);
00070 }
00071 
00072 GObject*
00073 g_web_history_list_get_items (GWebHistoryList *self)
00074 {
00075         return G_WEB_HISTORY_LIST_GET_CLASS (self)->get_items (self);
00076 }
00077 
00078 gint
00079 g_web_history_list_get_items_count (GWebHistoryList *self)
00080 {
00081         return G_WEB_HISTORY_LIST_GET_CLASS (self)->get_items_count (self);
00082 }
00083 
00084 const gchar*
00085 g_web_history_list_get_item_title (GWebHistoryList *self, gint pos)
00086 {
00087         return G_WEB_HISTORY_LIST_GET_CLASS (self)->get_item_title (self, pos);
00088 }
00089 
00090 const gchar*
00091 g_web_history_list_get_item_url (GWebHistoryList *self, gint pos)
00092 {
00093         return G_WEB_HISTORY_LIST_GET_CLASS (self)->get_item_url (self, pos);
00094 }
00095 
00096 GTime
00097 g_web_history_list_get_item_time (GWebHistoryList *self, gint pos)
00098 {
00099         return G_WEB_HISTORY_LIST_GET_CLASS (self)->get_item_time (self, pos);
00100 }

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