* * -------------------------------------------- * * This program is free software; you can redistribute it and/or modify it * * under the terms of the GNU General Public License as published by the * * Free Software Foundation; either version 2 of the License, or (at your * * option) any later version. * \**************************************************************************/ /*******************************************\ * Define a aplicação mobile preferencial * \*******************************************/ //TODO: Ler do banco do expresso as preferências do usuário e definir a aplicação móvel padrão // por enquanto isto será hardcoded para mobilemail. $GLOBALS['phpgw_info']['flags']['currentapp'] = 'ac'; $GLOBALS['phpgw_info']['user']['preferences']['common']['default_mobile_app'] = 'mobilemail'; // mobilecalendar, mobilecc ou mobilemail /* * @function start_prefered_app * @abstract Função que chama a aplicação móvel preferencial. * @author Mário César Kolling */ function start_prefered_app(){ //TODO: Determinar qual a aplicação móvel preferida e iniciá-la. switch($GLOBALS['phpgw_info']['user']['preferences']['common']['default_mobile_app']){ case mobilemail: $link = "ui_mobilemail.mail_list"; break; case mobilecalendar: $link = "ui_mobilecalendar.index"; break; case mobilecc: $link = "ui_mobilecc.contacts_list"; break; default: break; } $GLOBALS['phpgw']->redirect($GLOBALS['phpgw']->link("index.php?menuaction=ac.".$link)); } ?>