usbuis/imageprintuiprovider/inc/caiwprintingprovider.h
changeset 93 2dc695882abd
parent 89 3592750162a5
equal deleted inserted replaced
89:3592750162a5 93:2dc695882abd
     1 /*
       
     2 * Copyright (c) 2006 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:  Header file for caiwprintingprovider
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef __CAIWPRINTINGPROVIDER_H__
       
    21 #define  __CAIWPRINTINGPROVIDER_H__
       
    22 
       
    23 #include <AiwServiceIfMenu.h>
       
    24 #include <AknLaunchAppService.h>
       
    25 #include <badesca.h>
       
    26 
       
    27 #include "caiwimageprintif.h"
       
    28 
       
    29 
       
    30 /**
       
    31 * AIW provider plugin that handles print scenario.
       
    32 */
       
    33 class CAiwPrintingProvider :
       
    34     public CAiwImagePrintIf,
       
    35     public MAknServerAppExitObserver
       
    36     {
       
    37     public: //Constructors and destructors
       
    38         static CAiwPrintingProvider* NewL();
       
    39         ~CAiwPrintingProvider();
       
    40         
       
    41     public: // from MAknServerAppExitObserver
       
    42 		void HandleServerAppExit( TInt aReason );
       
    43 		void StartApplicationL();
       
    44 
       
    45     
       
    46     private: // From CAiwServiceIfMenu
       
    47         void InitialiseL(MAiwNotifyCallback& aFrameworkCallback,
       
    48                          const RCriteriaArray& aInterest);
       
    49 
       
    50         void InitializeMenuPaneL(CAiwMenuPane& aMenuPane,
       
    51                                  TInt aIndex,
       
    52                                  TInt aCascadeId,
       
    53                                  const CAiwGenericParamList& aInParamList);
       
    54 
       
    55         void HandleServiceCmdL(const TInt& aCmdId,
       
    56                                const CAiwGenericParamList& aInParamList,
       
    57                                CAiwGenericParamList& aOutParamList,
       
    58                                TUint aCmdOptions = 0,
       
    59                                const MAiwNotifyCallback* aCallback = NULL);
       
    60 
       
    61         void HandleMenuCmdL(TInt aMenuCmdId,
       
    62                             const CAiwGenericParamList& aInParamList,
       
    63                             CAiwGenericParamList& aOutParamList,
       
    64                             TUint aCmdOptions = 0,
       
    65                             const MAiwNotifyCallback* aCallback = NULL);
       
    66     private:
       
    67         void DoHandleCmdL(TInt aMenuCmdId,
       
    68                             const CAiwGenericParamList& aInParamList,
       
    69                             CAiwGenericParamList& aOutParamList,
       
    70                             TUint aCmdOptions = 0,
       
    71                             const MAiwNotifyCallback* aCallback = NULL);
       
    72                             
       
    73         void LaunchImagePrintApplicationL();  
       
    74         TBool IsImagePrintUiRunning();
       
    75         void ShowNoteL();
       
    76         
       
    77         
       
    78           
       
    79     private: // Data
       
    80         TInt iResourceOffset;
       
    81         const RCriteriaArray* iInterest;
       
    82         TInt iAiwCall;
       
    83         MAiwNotifyCallback* iNotifyCallback;
       
    84         CAknLaunchAppService* iService;
       
    85         
       
    86         const CAiwGenericParamList *iConsumerInParamList;
       
    87         CAiwGenericParamList *iConsumerOutParamList;
       
    88         const MAiwNotifyCallback *iConsumerCallback;
       
    89     };
       
    90 
       
    91 #endif // __CAIWPRINTINGPROVIDER_H__
       
    92