Symbian-Developers
The Official Developers Section => Symbian Software Development Discussions => The Developers Section => Symbian Java/C++ Application Development => Topic started by: huellif on December 16, 2013, 07:21:38 pm
-
This tutorial got requested by Janole (Garvity creator) and could be intresting for pisarz1958 (Lightbulb).
it shows how to enable/disable the native chat icon like WhatsApp or Nokia Chat.
1. you have to add to your .mmp:
LIBRARY euser.lib
CAPABILITY WriteDeviceData
for Qt build tools to your .pro:
LIBS += -leuser
TARGET.CAPABILITY += WriteDeviceDa
2. implement it:
#include <coreapplicationuisdomainpskeys.h> //keys for RProperty
#include <e32property.h> //RProperty
RProperty iProperty;
//to enable it:
iProperty.Set(KPSUidCoreApplicationUIs, KCoreAppUIsUipInd, ECoreAppUIsShow);
//to disable it:
iProperty.Set( KPSUidCoreApplicationUIs, KCoreAppUIsUipInd, ECoreAppUIsDoNotShow);
really simple or?
an example tool is attached, it shows a simple on/off dialog
-
Damn that is simple :O
+rep for this mate ;)
-
Thank you huellif .. you always the best ;)
-
Thank you huellif .. you always the best ;)
I try to but there's a long way to reach Il.Socio :P
Damn that is simple :O
native coding can be easy from time to time ;)
APIs which work without of cleanups, traps, pointers (ok they aren't comlicated but you have to remove them) are rare.
-
there's a long way to reach Il.Socio :P
But you certainly are going for it, mate ;)