locationsystemui/locationsysui/queryandnotification/inc/EPos_CPosRequestHandler.h
branchRCL_3
changeset 8 6fcbaa43369c
child 13 9c303455e256
equal deleted inserted replaced
7:19bff11d6c18 8:6fcbaa43369c
       
     1 /*
       
     2 * Copyright (c) 2002-2005 Nokia Corporation and/or its subsidiary(-ies). 
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:   Class for privacy notifier request handling helper.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 /**
       
    22  @file
       
    23  @internalComponent
       
    24  @released
       
    25 */
       
    26 
       
    27 #ifndef EPOS_CPOSREQUESTHANDLER_H
       
    28 #define EPOS_CPOSREQUESTHANDLER_H
       
    29 
       
    30 //  INCLUDES
       
    31 #include <e32base.h>
       
    32 #include <lbs/EPos_TPosQNInputData.h>
       
    33 #include <EPos_CPosPrivacyNotifier.h>
       
    34 
       
    35 // FORWARD DECLARATIONS
       
    36 class CPosPrivacyNotifier;
       
    37 
       
    38 // CLASS DECLARATION
       
    39 
       
    40 /**
       
    41 *  The privacy notifier request handling helper class.
       
    42 */
       
    43 NONSHARABLE_CLASS(CPosRequestHandler) : public CActive
       
    44     {
       
    45     public: // Constructors and destructors
       
    46 
       
    47        /**
       
    48         * Two-phased constructor.
       
    49         */
       
    50         static CPosRequestHandler* NewL(
       
    51             CPosPrivacyNotifier* aNotifier,
       
    52             CPosPrivacyNotifierExtension* aExtension);
       
    53 
       
    54         /**
       
    55         * Destructor.
       
    56         */
       
    57         ~CPosRequestHandler();
       
    58 
       
    59     public: // New functions
       
    60 
       
    61         /**
       
    62         * Starts the active scheduler.
       
    63         * @param aInputData Data containing update parameters.
       
    64         */
       
    65         void ScheduleRequest(const TPosQNInputData& aInputData);
       
    66 
       
    67     protected: // Functions from base classes
       
    68 
       
    69         /**
       
    70         * From CActive.
       
    71         */
       
    72         void RunL();
       
    73 
       
    74         /**
       
    75         * From CActive.
       
    76         */
       
    77         void DoCancel();
       
    78 
       
    79         /**
       
    80         * From CActive.
       
    81         */
       
    82         TInt RunError(TInt aError);
       
    83 
       
    84     private:
       
    85 
       
    86         /**
       
    87         * Private C++ default constructor.
       
    88         */
       
    89         CPosRequestHandler();
       
    90 
       
    91          /**
       
    92         * By default Symbian 2nd phase constructor is private.
       
    93         */
       
    94        void ConstructL(
       
    95            CPosPrivacyNotifier* aNotifier,
       
    96            CPosPrivacyNotifierExtension* aExtension);
       
    97 
       
    98     private: // Data
       
    99 
       
   100         CPosPrivacyNotifier* iPrivacyNotifier;
       
   101         CPosPrivacyNotifierExtension* iExtension;
       
   102         TPosQNInputData iInputData;
       
   103 
       
   104 };
       
   105 
       
   106 #endif      // EPOS_CPOSREQUESTHANDLER_H
       
   107