Main Page | File List | File Members

hildon-cp-plugin-interface.h

Go to the documentation of this file.
00001 /*
00002  * This file is part of hildon-control-panel
00003  *
00004  * Copyright (C) 2005 Nokia Corporation.
00005  *
00006  * Contact: Karoliina Salminen <karoliina.t.salminen@nokia.com>
00007  *
00008  * This library is free software; you can redistribute it and/or
00009  * modify it under the terms of the GNU Lesser General Public License
00010  * version 2.1 as published by the Free Software Foundation.
00011  *
00012  * This library is distributed in the hope that it will be useful, but
00013  * WITHOUT ANY WARRANTY; without even the implied warranty of
00014  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
00015  * Lesser General Public License for more details.
00016  *
00017  * You should have received a copy of the GNU Lesser General Public
00018  * License along with this library; if not, write to the Free Software
00019  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
00020  * 02110-1301 USA
00021  *
00022  */
00030 #ifndef __HILDON_CP_PLUGIN_INTERFACE_H__
00031 #define __HILDON_CP_PLUGIN_INTERFACE_H__
00032 
00033 /* Includes */
00034 # include <libosso.h>
00035 
00036 G_BEGIN_DECLS
00037 
00055 osso_return_t execute(osso_context_t * osso, gpointer data, gboolean user_activated);
00056 
00057 /*
00058  * This function will be called by the hildon_cp_pluginsavestaet() function.
00059  *
00060  * It acts as a notify to the plugin that the application is about to
00061  * save its state.
00062  * 
00063  * @param osso The osso context of the application that executes the plug
00064  * @param data  The GTK toplevel widget. It is needed so that 
00065  * the widgets created by the plugin can be made a child of the
00066  * main application that utilizes the plugin. Type is gpointer so
00067  * that the plugin does not need to depend on GTK (in which case it
00068  * should ignore the parameter).
00069  *  
00070  * @return OSSO_OK on success, OSSO_ERR on error.
00071  */
00072 osso_return_t save_state(osso_context_t * osso, gpointer data);
00073 
00074 G_END_DECLS
00075 
00076 #endif

Generated on Thu Dec 21 18:18:50 2006 by  doxygen 1.4.2