Discussion Board

Results 1 to 3 of 3
  1. #1
    Regular Contributor Shilpa13's Avatar
    Join Date
    Apr 2006
    Location
    India
    Posts
    383
    Hi All Experts!

    We are scanning the directory via active object and wanna display status of it on screen.

    At the same time, application should respond to other UI events.

    We should be able to cancel or pause the scanning process.

    The asynchronous service provider can be a solution.

    In SDK, its given how to use asynchronous service provider with active object.

    But its not clear, how to create an asynchronous service provider.

    I created low priority active object.

    I need some clue to cancel or pause the ongoing operation in active object.

    What may be the best possible approach for this..?

    Experts plz guide.

    Thanks.
    Regards,
    Shilpa Kulkarni

  2. #2
    Regular Contributor SymbianSandy's Avatar
    Join Date
    Mar 2005
    Location
    Bangalore,India
    Posts
    306
    what about studying "Asynchronous Client/Server Example"?

  3. #3
    Regular Contributor rathodavinash's Avatar
    Join Date
    Mar 2005
    Location
    Mumbai
    Posts
    212
    Hi Shilpa,

    I assume that your active object runs fine(scanning directories), just create an abstract class MReportSomething

    eg.
    class MReportSomething
    {
    virtual void CurrentStatusL(const TDesC& aResponse) = 0;
    };

    this class should be one the base classes of the view where you want to show the status.
    Implement CurrentStatusL in the view class.

    In your active objects RunL call CurrentStatusL on the MReportSomething observer e.g. iObserver.CurrentStatusL(aResp);

    -Avi

Similar Threads

  1. Asynchronous Service Provider
    By Shilpa13 in forum Symbian User Interface
    Replies: 2
    Last Post: 2006-12-19, 06:37
  2. Creating asynchronous service provider - Help
    By epilef74 in forum Symbian C++
    Replies: 2
    Last Post: 2006-03-16, 17:14
  3. 6680 and bluetooth service profiles
    By ceruault in forum Mobile Java Networking & Messaging & Security
    Replies: 1
    Last Post: 2005-10-08, 22:24
  4. How to create Asynchronous function (Service Provider)
    By awasthi_vivek in forum Symbian C++
    Replies: 0
    Last Post: 2004-04-07, 08:32
  5. how to create service provider.
    By engrsanjiv in forum Symbian C++
    Replies: 0
    Last Post: 2003-12-15, 08:51

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved