mpxplugins/viewplugins/views/waitnotedialog/inc/mpxscanningdialog.h
changeset 0 ff3acec5bc43
child 17 c8156a91d13c
equal deleted inserted replaced
-1:000000000000 0:ff3acec5bc43
       
     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:  Wait note dialog for scanning
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef C_MPXSCANNINGNOTEDIALOG_H
       
    20 #define C_MPXSCANNINGNOTEDIALOG_H
       
    21 
       
    22 #include "mpxwaitnotedialog.h"
       
    23 
       
    24 class MMPXHarvesterUtility;
       
    25 
       
    26 /**
       
    27  *  Wait note class for the scanning cases
       
    28  *
       
    29  *  @lib mpxwaitnotedialog.dll
       
    30  *  @since S60 3.1
       
    31  */
       
    32 class CMPXScanningWaitDialog : public CMPXWaitNoteDialog
       
    33                               
       
    34     {
       
    35 
       
    36 public:
       
    37 
       
    38     /**
       
    39     * Two-phased constructor
       
    40     */
       
    41     static CMPXScanningWaitDialog* NewL( MMPXWaitNoteObserver* aObs,
       
    42                                          TWaitNoteType aType );
       
    43 
       
    44     /**
       
    45     * Virtual destructor
       
    46     */
       
    47     virtual ~CMPXScanningWaitDialog();
       
    48 
       
    49 protected: // CMPXWaitNoteDialog
       
    50     
       
    51     /**
       
    52     * Initialize the note before executing
       
    53     * The inherited class should set CBA, text, icons etc here
       
    54     */
       
    55     void PreNoteDisplayHandleL();
       
    56 
       
    57     /**
       
    58     * Post note dissmissal handling
       
    59     * @arg aButtonId, button ID that the note was cancelled with
       
    60     */
       
    61     void PostNoteHandleL( TInt aButtonId );
       
    62     
       
    63     /**
       
    64     * From MMPXCollectionObserver
       
    65     */
       
    66     void HandleCollectionMessage(
       
    67         CMPXMessage* aMessage, TInt aError );
       
    68 
       
    69 private: 
       
    70 
       
    71     /**
       
    72     * Handle DB Corruption, cleans up both harvester and collection
       
    73     */
       
    74     void HandleDatabaseCorruptionL();
       
    75     
       
    76 private:
       
    77 
       
    78     /**
       
    79     * Private constructor
       
    80     */
       
    81     CMPXScanningWaitDialog( MMPXWaitNoteObserver* aObs,
       
    82                             TWaitNoteType aType );
       
    83 
       
    84     /**
       
    85     * Second phased constructor
       
    86     */
       
    87     void ConstructL();
       
    88     
       
    89     /**
       
    90      * Handle collection message
       
    91      * 
       
    92      * @param aMessage collection message
       
    93      */
       
    94     void DoHandleCollectionMessageL( const CMPXMessage& aMessage );
       
    95 
       
    96 private: // data
       
    97     MMPXHarvesterUtility*  iHarvesterUtil;
       
    98     
       
    99     TInt                   iNumItemsAdded;
       
   100     TInt                   iScanningError;
       
   101     TInt                   iInitialMMCCount;
       
   102     TInt                   iTotalNewTracks;
       
   103     };
       
   104 
       
   105 
       
   106 #endif // C_MPXSCANNINGNOTEDIALOG_H