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

Title: Enabling/Disabling native chat icon
Post 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:
Code: [Select]
LIBRARY          euser.lib
CAPABILITY      WriteDeviceData

for Qt build tools to your .pro:
Code: [Select]
LIBS += -leuser
TARGET.CAPABILITY += WriteDeviceDa

2. implement it:
Code: [Select]
#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
Title: Re: Enabling/Disabling native chat icon
Post by: Allstar12345 on December 16, 2013, 10:58:04 pm
Damn that is simple :O

+rep for this mate ;)
Title: Re: Enabling/Disabling native chat icon
Post by: Motaz on December 17, 2013, 02:02:23 am
Thank you huellif .. you always the best ;)
Title: Re: Enabling/Disabling native chat icon
Post by: huellif on December 19, 2013, 04:52:51 am
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.
Title: Re: Enabling/Disabling native chat icon
Post by: matthew on December 19, 2013, 06:29:41 am
there's a long way to reach Il.Socio :P
But you certainly are going for it, mate ;)