locationsystemui/locationsysui/privacyverifiernotifierui/locverifier/inc/lpdglobalplugindialog.h
branchRCL_3
changeset 44 2b4ea9893b66
equal deleted inserted replaced
42:02ba3f1733c6 44:2b4ea9893b66
       
     1 /*
       
     2 * Copyright (c) 2010 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:  List query dialog suitable for verifier plug-in use.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CLPDGLOBALPLUGINDIALOG_H
       
    20 #define CLPDGLOBALPLUGINDIALOG_H
       
    21 
       
    22 // INCLUDES
       
    23 #include <hbdevicemessageboxsymbian.h>
       
    24 #include <hbdevicenotificationdialogsymbian.h>
       
    25 #include <hbdevicedialogsymbian.h>
       
    26 
       
    27 
       
    28 const TInt KReqBufferSize = 256;
       
    29 // FORWARD DECLARATIONS
       
    30 class MLpdDlgObserver;
       
    31 class CLpdRequestorProcessor;
       
    32 class CHbDeviceDialog;
       
    33 // CLASS DECLARATION
       
    34 
       
    35 /**
       
    36 *  A list query dialog suitable for verifier plug-in use.
       
    37 *  utilizes MLpdDlgObserver
       
    38 *  for notifying when dialog is dismissed.
       
    39 *
       
    40 *  @lib locverifierdlg.lib
       
    41 *  @since 2.1
       
    42 */
       
    43 class CLpdGlobalPluginDialog : public CBase,
       
    44                                public  MHbDeviceDialogObserver ,
       
    45                                public  MHbDeviceNotificationDialogObserver 
       
    46 
       
    47 	{
       
    48     public:  // Constructors and destructor
       
    49 
       
    50         /**
       
    51         * Two-phased constructor.
       
    52         * @param aCallBack is notified when dialog is dismissed
       
    53         * @return created object
       
    54         */
       
    55         static CLpdGlobalPluginDialog* NewL(
       
    56                     MLpdDlgObserver& aCallBack);
       
    57 
       
    58 		
       
    59         /**
       
    60         * C++ destructor.
       
    61         */
       
    62         virtual ~CLpdGlobalPluginDialog();
       
    63 
       
    64     public: // Functions from base classes
       
    65 
       
    66       
       
    67         void RunVerificationQueryL();
       
    68         
       
    69         void RunNotificationL();
       
    70         
       
    71                         
       
    72         void SetRequestInfoL( CLpdRequestorProcessor* aRequestInfo );
       
    73               
       
    74         
       
    75         void Cancel();
       
    76         
       
    77         void DataReceived(CHbSymbianVariantMap& aData);
       
    78 
       
    79         void DeviceDialogClosed(TInt aCompletionCode);
       
    80         
       
    81         void AddVerDlgHeadingParamL();
       
    82         
       
    83         void AddQueryTextParamL();
       
    84         
       
    85         void AddRequestorsParamL();
       
    86         
       
    87            
       
    88         
       
    89     public:
       
    90         void  NotificationDialogActivated (const CHbDeviceNotificationDialogSymbian *aDialog);
       
    91         
       
    92         void  NotificationDialogClosed (const CHbDeviceNotificationDialogSymbian *aDialog, TInt aCompletionCode);
       
    93 
       
    94 
       
    95           
       
    96     private:  // Constructors and destructor
       
    97 
       
    98         /**
       
    99         * Symbian 2nd Phase Constructor.
       
   100         */
       
   101 		void ConstructL();
       
   102 
       
   103         /**
       
   104         * C++ constructor.
       
   105         * @param aCallBack is notified when dialog is dismissed
       
   106         */
       
   107         CLpdGlobalPluginDialog(
       
   108                     MLpdDlgObserver& aCallBack);
       
   109 
       
   110     private:    // Data
       
   111 
       
   112         // Object which is notified when query is dismissed
       
   113         MLpdDlgObserver& iCallBack;
       
   114         CHbDeviceDialogSymbian* iMsgBox;
       
   115         CHbDeviceNotificationDialogSymbian* iNotification;
       
   116         CLpdRequestorProcessor* iRequestInfo;
       
   117         CHbSymbianVariantMap* mSymbianVariantMap;
       
   118         TBool mDissmissed;
       
   119         TBool isCancelled;
       
   120 
       
   121         
       
   122 	};
       
   123 
       
   124 #endif      // CLPDGLOBALPLUGINDIALOG_H   
       
   125             
       
   126 // End of File