• April 27, 2024, 02:33:11 pm

Author Topic: Enabling/Disabling native chat icon  (Read 2439 times)

0 Members and 1 Guest are viewing this topic.

Offline huellif

  • Developer
  • Christmas Santa
  • ****
  • Posts: 402
  • Reputation: 212
Enabling/Disabling native chat icon
« 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

Offline Allstar12345

  • Allstar Software Founder
  • Administrator
  • Forum Genius
  • ******
  • Posts: 5,235
  • Reputation: 812
    • Allstar Software
  • Current Phone: : OnePlus 8 Pro, Xperia 10, Nexus 6p, Jolla Phone, Nokia N8, Nokia 808 PureView, BlackBerry Z30
Re: Enabling/Disabling native chat icon
« Reply #1 on: December 16, 2013, 10:58:04 pm »
Damn that is simple :O

+rep for this mate ;)

Offline Motaz

  • Developer
  • Forum User
  • ****
  • Posts: 62
  • Reputation: 72
  • Symbian Power User
  • Current Phone: : Nokia 700
Re: Enabling/Disabling native chat icon
« Reply #2 on: December 17, 2013, 02:02:23 am »
Thank you huellif .. you always the best ;)

Offline huellif

  • Developer
  • Christmas Santa
  • ****
  • Posts: 402
  • Reputation: 212
Re: Enabling/Disabling native chat icon
« Reply #3 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.

Offline matthew

  • Mass Poster
  • ****
  • Posts: 1,315
  • Reputation: 13
  • SymphonyOS
  • Current Phone: :
    N8-00 (25.007)
    808 (113.010.1508)
    Retired E72, E6-00
Re: Enabling/Disabling native chat icon
« Reply #4 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 ;)