Main Page | Directories | File List | File Members

hildon-navigator.h

Go to the documentation of this file.
00001 /*
00002  * This file is part of maemo-af-desktop
00003  *
00004  * Copyright (C) 2005, 2006 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  */
00023 
00024 
00030 #ifndef HILDON_NAVIGATOR_H
00031 #define HILDON_NAVIGATOR_H
00032 
00033 #include <libintl.h>
00034 
00035 /* Button numbers */
00036 enum
00037 {
00038     APPLICATIONS_MENU_BUTTON =0,
00039     BOOKMARK_MENU_BUTTON,
00040     MAIL_MENU_BUTTON
00041 };
00042 
00043 /* To tell a correct header */
00044 enum
00045 {
00046     BOOKMARK_MANAGER_TYPE =0,
00047     SEND_RECEIVE_TYPE,
00048     OUTBOX_TYPE
00049 };
00050 
00051 #define TEEMADIR "TEEMADIR"
00052 #define HOME_ENV "HOME"
00053 #define HILDON_NAVIGATOR_MENU_NAME "menu_from_navigator"
00054 
00055 #define _(String) gettext(String)
00056 
00057 enum
00058 {
00059     WIN_ICON_ITEM =0, /* Normal icon */
00060     WIN_NAME_ITEM,
00061     WIN_EXEC_ITEM,
00062     WIN_FILENAME_ITEM,
00063     WIN_ARGS_ITEM,
00064     WIN_TYPE_ITEM,
00065     WIN_DIMMED_ITEM, /* True if the window should be drawed dimmed */
00066     WIN_DIALOG_ITEM,
00067     WIN_TEXT_COLOR_ITEM,
00068     WIN_ID_ITEM,
00069     WIN_DIMMED_ICON_ITEM, /* Icon to be used for dimmed windows */
00070     WIN_APP_ICON_ITEM, 
00071     WIN_APP_DIMMED_ICON_ITEM,
00072     WIN_BIN_NAME_ITEM,
00073     WIN_BOLD_ITEM,
00074     NUM_TASK_ITEMS
00075 };
00076 
00077 enum
00078 {
00079     WIN_ITEM_TYPE_APP,
00080     WIN_ITEM_TYPE_WINDOW
00081 };
00082 
00083 G_BEGIN_DECLS
00084 
00085 /*activates an application.  This does one of two things: 1) If the
00086  *application isn't running, then the application is started.  2) If the
00087  *application is running, then it is raised to become the topmost window.
00088  *@param name - the name of the application
00089  *@param exec - the fullpath of the executable
00090  *@param param Any parameters that need to be passed to the application
00091  */
00092 void hildon_navigator_activate( const char* name, const char *exec, 
00093                                 const char *param );
00094 
00096 void hildon_navigator_killall( void );
00097 
00098 G_END_DECLS
00099 
00100 #endif /* HILDON_NAVIGATOR_H*/

Generated on Thu Dec 21 11:26:51 2006 for maemo-af-desktop-documentation by  doxygen 1.4.2