ncdengine/provider/server/inc/ncdserverreportoperationimpl.h
changeset 0 ba25891c3a9e
equal deleted inserted replaced
-1:000000000000 0:ba25891c3a9e
       
     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:  
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef C_NCD_SERVER_REPORT_OPERATION_H
       
    20 #define C_NCD_SERVER_REPORT_OPERATION_H
       
    21 
       
    22 #include "ncdbaseoperation.h"
       
    23 #include "ncdoperationobserver.h"
       
    24 
       
    25 class CNcdReportManager;
       
    26 
       
    27 
       
    28 /** 
       
    29  * Handles the server report operations.
       
    30  *
       
    31  * @see CNcdReportManager
       
    32  *
       
    33  */
       
    34 class CNcdServerReportOperation : public CNcdBaseOperation
       
    35     {
       
    36 public:
       
    37     
       
    38     /**
       
    39      * NewL
       
    40      *
       
    41      */
       
    42     static CNcdServerReportOperation* NewL(
       
    43         CNcdGeneralManager& aGeneralManager,
       
    44         MNcdOperationRemoveHandler& aRemoveHandler, 
       
    45         CNcdReportManager& aReportManager,
       
    46         MCatalogsSession& aSession );
       
    47     
       
    48     /**
       
    49      * Destructor
       
    50      */
       
    51     ~CNcdServerReportOperation();
       
    52 
       
    53     
       
    54 public: // New methods
       
    55 
       
    56     /** 
       
    57      * Report manager getter
       
    58      */
       
    59     CNcdReportManager& ReportManager();
       
    60     
       
    61     
       
    62 public: // From CNcdBaseOperation
       
    63 
       
    64     /**
       
    65      * @see CNcdBaseOperation::Cancel()
       
    66      */
       
    67     void Cancel();
       
    68         
       
    69 
       
    70 public:  // from MNcdOperationObserver
       
    71 
       
    72     void Progress( CNcdBaseOperation& aOperation );
       
    73     
       
    74     void QueryReceived( CNcdBaseOperation& aOperation,
       
    75                         CNcdQuery* aQuery );
       
    76 
       
    77     void OperationComplete( CNcdBaseOperation* aOperation,
       
    78                             TInt aError );
       
    79 
       
    80 protected: // From CNcdBaseOperation
       
    81 
       
    82     /**
       
    83      * @see CNcdBaseOperation::RunOperation()
       
    84      */
       
    85     TInt RunOperation();        
       
    86     
       
    87     
       
    88 protected:
       
    89 
       
    90     // Constructor
       
    91     CNcdServerReportOperation(      
       
    92         CNcdGeneralManager& aGeneralManager,
       
    93         MNcdOperationRemoveHandler& aRemoveHandler, 
       
    94         CNcdReportManager& aReportManager,
       
    95         MCatalogsSession& aSession );
       
    96         
       
    97     virtual void ConstructL();
       
    98     
       
    99         
       
   100 private:
       
   101 
       
   102     CNcdReportManager& iReportManager;
       
   103 
       
   104     };
       
   105 
       
   106 #endif // C_NCD_SERVER_REPORT_OPERATION_H