Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7677681
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T17:28:40+00:00 2026-05-31T17:28:40+00:00

i’m studying this source base . Basically this is an Anim server client for

  • 0

i’m studying this source base. Basically this is an Anim server client for Symbian 3rd edition for the purpose of grabbing input events without consuming them in a reliable way.

If you spot this line of the server, here it is basically setting the RProperty value (apparently to an increasing counter); it seems no actual processing of the input is done.

inside this client line, the client is supposed to be receiving the notification data, but it only calls Attach.

my understanding is that Attach is only required to be called once, but is not clear in the client what event is triggered every time the server sets the RProperty

How (and where) is the client supposed to access the RProperty value?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T17:28:41+00:00Added an answer on May 31, 2026 at 5:28 pm

    After Attaching the client will somewhere Subscribe to the property where it passes a TRequestStatus reference. The server will signal the request status property via the kernel when the asynchronous event has happened (in your case the property was changed). If your example source code is implemented in the right way, you will find an active object (AO; CActive derived class) hanging around and the iStatus of this AO will be passed to the RProperty API. In this case the RunL function of the AO will be called when the property has been changed.

    It is essential in Symbian to understand the active object framework and quite few people do it actually. Unfortunately I did not find a really good description online (they are explained quite well in Symbian OS Internals book) but this page at least gives you a quick example.

    Example

    In the ConstructL of your CMyActive subclass of CActive:

    CKeyEventsClient* iClient;
    RProperty         iProperty;
    // ...
    
    void CMyActive::ConstructL() 
        {
        RProcess myProcess;
        TSecureId propertyCategory = myProcess.SecureId();
            // avoid interference with other properties by defining the category
            // as a secure ID of your process (perhaps it's the only allowed value)
        TUint propertyKey = 1; // whatever you want
    
        iClient = CKeyEventsClient::NewL(propertyCategory, propertyKey, ...);
        iClient->OpenNotificationPropertyL(&iProperty);
    
        // ...
    
        CActiveScheduler::Add(this);
        iProperty.Subscribe(iStatus);
        SetActive();
        }
    

    Your RunL will be called when the property has been changed:

    void CMyActive::RunL()
        {
        if (iStatus.Int() != KErrCancel) User::LeaveIfError(iStatus.Int());
             // forward the error to RunError
    
        // "To ensure that the subscriber does not miss updates, it should
        // re-issue a subscription request before retrieving the current value 
        // and acting on it." (from docs)
        iProperty.Subscribe(iStatus);
    
        TInt value; // this type is passed to RProperty::Define() in the client
        TInt err = iProperty.Get(value);
        if (err != KErrNotFound) User::LeaveIfError(err);
    
        SetActive();
        }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
link Im having trouble converting the html entites into html characters, (&# 8217;) i
For some reason, after submitting a string like this Jack’s Spindle from a text
Basically, what I'm trying to create is a page of div tags, each has
this is what i have right now Drawing an RSS feed into the php,
I have this code to decode numeric html entities to the UTF8 equivalent character.
I have this code: - (void)parser:(NSXMLParser *)parser foundCDATA:(NSData *)CDATABlock { NSString *someString = [[NSString
I need to clean up various Word 'smart' characters in user input, including but
Does anyone know how can I replace this 2 symbol below from the string

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.