locationsystemui/locationsysui/locverifier/inc/lpdnotifierquerylauncher.h
changeset 0 667063e416a2
equal deleted inserted replaced
-1:000000000000 0:667063e416a2
       
     1 /*
       
     2 * Copyright (c) 2002 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 which handles the dialog and expiration timer.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CLPDNOTIFIERQUERYLAUNCHER_H
       
    20 #define CLPDNOTIFIERQUERYLAUNCHER_H
       
    21 
       
    22 //  INCLUDES
       
    23 #include "lpdquerylauncherbase.h"
       
    24 #include <e32base.h>
       
    25 #include <lbs/epos_privacy.h>
       
    26 
       
    27 // FORWARD DECLARATIONS
       
    28 
       
    29 
       
    30 // CLASS DECLARATION
       
    31 
       
    32 /**
       
    33 *  Implements functionality for executing notifications.
       
    34 *
       
    35 *  @lib locverifierdlg.lib
       
    36 *  @since 2.1
       
    37 */
       
    38 class CLpdNotifierQueryLauncher :
       
    39 public CLpdQueryLauncherBase
       
    40     {
       
    41     public:  // Constructors and destructor
       
    42         
       
    43         /**
       
    44         * Two-phased constructor.
       
    45         * @param aHandler of ther query result
       
    46         * @return created object
       
    47         */
       
    48         static CLpdNotifierQueryLauncher* NewL( MLpdResultHandler& aHandler );
       
    49         
       
    50         /**
       
    51         * Destructor. Call Cancel() first if you have launched a query.
       
    52         */
       
    53         virtual ~CLpdNotifierQueryLauncher();
       
    54 
       
    55     public: // New functions
       
    56 
       
    57         /**
       
    58         * Prepares notification resources.
       
    59         * @param aReason for notification
       
    60         * @param aDecision that was applied to the request
       
    61         * @param aCurrentRequest request id of current request
       
    62         */
       
    63         void PrepareNotificationResourcesL( TPosNotificationReason aReason,
       
    64                                              TPosRequestDecision aDecision );
       
    65         
       
    66        /**
       
    67         * Prepares notification resources for supl periodic request.
       
    68         * @param aReason for notification
       
    69         * @param aCurrentRequest request id of current request
       
    70         */       
       
    71         void PrepareSuplNotificationResourcesL( TPosNotificationReason aReason );
       
    72 
       
    73         /**
       
    74         * Prepares resources for error notification caused by
       
    75         * privacy query cancellation. Otherwise similar to 
       
    76         * PrepareNotificationResourcesL().
       
    77         * @param aDecision that was applied to the request
       
    78         * @param aCurrentRequest request id of current request
       
    79         */
       
    80         void PrepareCancelNotifResourcesL( TPosRequestDecision aDecision );
       
    81 
       
    82       /**
       
    83         * Prepares resources for error notification caused by
       
    84         * privacy query cancellation in supl periodic request.
       
    85         * Otherwise similar to PrepareNotificationResourcesL().
       
    86         * @param aDecision that was applied to the request
       
    87         * @param aCurrentRequest request id of current request
       
    88         */
       
    89         void PrepareSuplCancelNotifResourcesL( TPosRequestDecision aDecision );
       
    90 
       
    91 
       
    92     protected: // Functions from base classes
       
    93 
       
    94         /**
       
    95         * From CLpdQueryLauncherBase, called when dialog is dismissed.
       
    96         */
       
    97         void ExtendedHandleDlgDismissedL();
       
    98 
       
    99     private: // Constructors and destructors
       
   100 
       
   101         /**
       
   102         * C++ constructor.
       
   103         * @param aHandler of the query result
       
   104         */
       
   105         CLpdNotifierQueryLauncher( MLpdResultHandler& aHandler );
       
   106 
       
   107         /**
       
   108         * By default Symbian 2nd phase constructor is private.
       
   109         */
       
   110         void ConstructL();
       
   111 
       
   112     protected: // data
       
   113 
       
   114     };
       
   115 
       
   116 #endif      // CLPDNOTIFIERQUERYLAUNCHER_H   
       
   117             
       
   118 // End of File