Active Topics

 


Reply
Thread Tools
Posts: 1 | Thanked: 0 times | Joined on Mar 2011
#1
Dear fellow programmers,

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:

Code:
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();
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

I hope one of you can help me out, Bilderbikkel
 
nicolai's Avatar
Posts: 1,637 | Thanked: 4,424 times | Joined on Apr 2009 @ Germany
#2
What do you mean with: "...for all installed applications and contacts"

With gtk it is at least possible to implement an addressbook
menu plugin and you can use the osso-addresbook widgets:
http://maemo.org/api_refs/5.0/5.0-final/libosso-abook/
http://wiki.maemo.org/Documentation/...dress_Book_API
 
Reply


 
Forum Jump


All times are GMT. The time now is 20:21.