Is there a way to use the native Maemo 5 menu's for all installed applications and contacts? For example, when developing a Maemo address book application, it might be intuitive to the user that the suggested contacts are shown in the standard contact list menu.
Is it possible using the C++ libraries Hildon and/or Qt(Mobility) to do this? I would like to be able to program something like the (sub-optimal) code below:
Perhaps this is not possible at all (AFAIK one cannot use the classes used for the Mac/Windows/others main menu's, nor make a copy that can be manipulated) or this is so obvious to do so that nobody mentions it on this internet (up until this post).
Technical details:
- Maemo version: Maemo 5
- Target phone: Nokia N900
- Programming language: C++
- Development platform: Ubuntu
- IDE: Qt Creator
- Compiler: G++ from GCC
Is there a way to use the native Maemo 5 menu's for all installed applications and contacts? For example, when developing a Maemo address book application, it might be intuitive to the user that the suggested contacts are shown in the standard contact list menu.
Is it possible using the C++ libraries Hildon and/or Qt(Mobility) to do this? I would like to be able to program something like the (sub-optimal) code below:
MainMenu * const menu = GetMainMenuInSomeWay(); for (int i=0; i!=menu->CountItems(); ++i) { if ( (menu->GetItems()[i].IsContact() && menu->GetItems()[i].LivesIn("Groningen") ) || ( menu->GetItems()[i].IsApplication() && me->GetItems()[i].GetProgrammer("Bilderbikkel") ) ) { menu->GetItems()[i].Show(); } else { menu->GetItems()[i].Hide(); } } menu->Show();Technical details:
- Maemo version: Maemo 5
- Target phone: Nokia N900
- Programming language: C++
- Development platform: Ubuntu
- IDE: Qt Creator
- Compiler: G++ from GCC
I hope one of you can help me out, Bilderbikkel