×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Jun 2005
    Posts
    4

    Catching events with RSystemAgent

    Hi,

    I'm trying to catch system events using RSystemAgent, TSysAgentEvent and CActive. When I catch the events in my RunL I compare them with the constants defined in sacls.h.

    I have managed to catch events for battery change and message arrived. However, some events dont seem to correspond to the constants defined in sacls.h. For instance, when receiving an event for a change in the network strength I receive 0x100052D4 instead of KUidNetworkStrength (0x100052C8) and this constant isn't defined in sacls.h!
    Same thing with charger status.
    Why is that?

    Are there any more constants than those defined in sacls.h? If so, where can I find them?

    Below is a list of the events I want to catch:

    * Battery strength - works with KUidBatteryStrength
    * Message in inbox - works with KUidInboxStatus
    * Call status
    * Network (3G or GSM)
    * Signal strength - doesn't work with KUidNetworkStrength, but seems to work with 0x100052D4??
    * Network status (idle, connecting etc.)
    * Memory card (not present, writable etc.)

    Is it possible to catch these events using RSystemAgent?


    Many thanks in advance!

    /M
    Last edited by d00mo; 2005-06-02 at 09:25.

  2. #2
    Regular Contributor
    Join Date
    Oct 2003
    Location
    Spain
    Posts
    329
    Hi,

    Did you find the right uid's? I have to do the same (retrieve some network information).
    I'm using a 6630. What information can be retrieved?

    Thanks in advance.

  3. #3
    Registered User
    Join Date
    Jun 2005
    Posts
    4
    Not all of them. I got the following to work:

    Inbox status - KUidInboxStatusValue
    Charger status - 0x100052D7
    Battery strength - KUidBatteryStrengthValue
    Call status - KUidCurrentCallValue
    Network strength - 0x100052D4 (seems to be used for something else also)

    I am also using a 6630.

    I still need uid's for display status (on, off, power save), network bearer (gsm, 3g), network roaming, memory card status, language changed.
    I would really appreciate if anyone could help me how to receive these changes.

  4. #4
    Regular Contributor
    Join Date
    Oct 2003
    Location
    Spain
    Posts
    329
    Hi d00mo,

    Do you know if it's possible to retrieve cell id using RSystemAgent?

    Thanks in advance.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×