00001 /* 00002 * This file is part of maemo-af-desktop 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 * as published by the Free Software Foundation; either version 2.1 of 00011 * the License, or (at your option) any later version. 00012 * 00013 * This library is distributed in the hope that it will be useful, but 00014 * WITHOUT ANY WARRANTY; without even the implied warranty of 00015 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00016 * Lesser General Public License for more details. 00017 * 00018 * You should have received a copy of the GNU Lesser General Public 00019 * License along with this library; if not, write to the Free Software 00020 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 00021 * 02110-1301 USA 00022 * 00023 */ 00024 00025 00031 #ifndef HILDON_NAVIGATOR_H 00032 #define HILDON_NAVIGATOR_H 00033 00034 #include <libintl.h> 00035 00036 /* Button numbers */ 00037 enum 00038 { 00039 APPLICATIONS_MENU_BUTTON =0, 00040 BOOKMARK_MENU_BUTTON, 00041 MAIL_MENU_BUTTON 00042 }; 00043 00044 /* To tell a correct header */ 00045 enum 00046 { 00047 BOOKMARK_MANAGER_TYPE =0, 00048 SEND_RECEIVE_TYPE, 00049 OUTBOX_TYPE 00050 }; 00051 00052 #define TEEMADIR "TEEMADIR" 00053 #define HOME_ENV "HOME" 00054 #define HILDON_NAVIGATOR_MENU_NAME "menu_from_navigator" 00055 00056 #define _(String) gettext(String) 00057 00058 enum 00059 { 00060 WIN_ICON_ITEM =0, /* Normal icon */ 00061 WIN_NAME_ITEM, 00062 WIN_EXEC_ITEM, 00063 WIN_FILENAME_ITEM, 00064 WIN_ARGS_ITEM, 00065 WIN_TYPE_ITEM, 00066 WIN_DIMMED_ITEM, /* True if the window should be drawed dimmed */ 00067 WIN_DIALOG_ITEM, 00068 WIN_TEXT_COLOR_ITEM, 00069 WIN_ID_ITEM, 00070 WIN_DIMMED_ICON_ITEM, /* Icon to be used for dimmed windows */ 00071 WIN_APP_ICON_ITEM, 00072 WIN_APP_DIMMED_ICON_ITEM, 00073 WIN_BIN_NAME_ITEM, 00074 WIN_BOLD_ITEM, 00075 NUM_TASK_ITEMS 00076 }; 00077 00078 enum 00079 { 00080 WIN_ITEM_TYPE_APP, 00081 WIN_ITEM_TYPE_WINDOW 00082 }; 00083 00084 G_BEGIN_DECLS 00085 00086 /*activates an application. This does one of two things: 1) If the 00087 *application isn't running, then the application is started. 2) If the 00088 *application is running, then it is raised to become the topmost window. 00089 *@param name - the name of the application 00090 *@param exec - the fullpath of the executable 00091 *@param param Any parameters that need to be passed to the application 00092 */ 00093 void hildon_navigator_activate( const char* name, const char *exec, 00094 const char *param ); 00095 00097 void hildon_navigator_killall( void ); 00098 00099 G_END_DECLS 00100 00101 #endif /* HILDON_NAVIGATOR_H*/