maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   MeeGo / Harmattan (https://talk.maemo.org/forumdisplay.php?f=45)
-   -   DBUS- N9 - Need help for command (https://talk.maemo.org/showthread.php?t=92307)

nemric 2014-01-08 10:57

DBUS- N9 - Need help for command
 
Hi,

Perhaps I'm wrong, but I think I should be able to set schedule on/off for mail account using Dbus

I used Dbus-monitor to grab dbus messages after modifying mail account setting from schedule 'on' to schedule 'off'

here is a piece of code I grab :

Code:

signal sender=:1.911 -> dest=(null destination) serial=6 path=/com/nokia/AccountsLib; interface=com.nokia.AccountsLib; member=AccountChanged
  uint32 286474
  uint32 655060113
  uint32 2
  boolean false
  boolean false
  string "email"
  array [
      struct {
        string "global"
        string "global"
        uint32 0
        array [
            dict entry(
              string "scheduler/schedule_enabled"
              variant                  boolean false
            )
        ]
        array [
        ]
      }
...

Now I need help, please, to know if there's a way to write a dbus-send command with these arguments to set mail schedule on/off parameter.

My goal is to write a custom action for profilematic

Thanks,
Nemric.

EmaNymton 2014-01-08 11:28

Re: DBUS- N9 - Need help for command
 
dbus-sent does not permit nested containers. I think you have to go with Python or QML.

Take a look!
http://talk.maemo.org/showthread.php...51#post1404751

nemric 2014-01-08 15:20

Re: DBUS- N9 - Need help for command
 
Hi, thanks for answer,

I don't know if I understand everything, n9 world is so complex with gconfig/aegis/dbus/mcetools ...
I 'd like to send only one setting : "scheduler/schedule_enabled" like on this post

with something like (won"t work ;) ) :
dbus-send --session --print-reply --path=/com/nokia/AccountsLib; interface=com.nokia.AccountsLib.scheduler/schedule_enabled boolean:false or true

I'm not a master user of "linux", just some easy things on my "scientificLinux" like RPM and .config and some easy command lines.

so perhaps dbus is not the right way to run this command ?

regards,
Nemric.

nemric 2014-01-11 15:45

Re: DBUS- N9 - Need help for command
 
ok,
I'm starting hard work to try learning qml/qt/dbus/ or anything else ...

I'll give some news as soon as I could install harmattan SDK and avoiding all no display/no permission/no space left/no target/ no no no ! of installation process wizard :confused:

...

Alexxxl 2014-01-17 08:19

Re: DBUS- N9 - Need help for command
 
Good day!
Prompt if you know ...
how to get through the dbus (if possible) the following things:
- Current time in the format: hh:mm
- The alarm status at the moment - rings / does not ring
- The fact of finding WiFi network
- Tasks in the calendar (time and name of the event or the fact of its occurrence)

www.rzr.online.fr 2014-01-17 08:36

Re: DBUS- N9 - Need help for command
 
getting the GPS position would be nice too

http://talk.maemo.org/showthread.php...88#post1388488


--
http://rzr.online.fr/q/gps

Alexxxl 2014-01-17 08:38

Re: DBUS- N9 - Need help for command
 
Quote:

Originally Posted by www.rzr.online.fr (Post 1407019)

there seems to be nothing complicated, where it was recorded in my team on getting GPS coordinate...
look for ...

Alexxxl 2014-01-17 08:41

Re: DBUS- N9 - Need help for command
 
Now, true for maemo, but I think you can find similarities if we go in this direction :

https://github.com/andrei1089/canola...gps-service.py


All times are GMT. The time now is 16:30.

vBulletin® Version 3.8.8