filemanager/View/inc/CFileManagerGlobalQueryDlg.h
changeset 0 6a9f87576119
equal deleted inserted replaced
-1:000000000000 0:6a9f87576119
       
     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:  Global query dialog handling
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef C_FILEMANAGERLOBALQUERYDLG_H
       
    21 #define C_FILEMANAGERLOBALQUERYDLG_H
       
    22 
       
    23 
       
    24 //  INCLUDES
       
    25 #include <e32base.h>
       
    26 
       
    27 
       
    28 // FORWARD DECLARATIONS
       
    29 class CAknGlobalConfirmationQuery;
       
    30 class MFileManagerGlobalDlgObserver;
       
    31 
       
    32 
       
    33 // CLASS DECLARATION
       
    34 /**
       
    35  *  This class handles global query dialog
       
    36  *
       
    37  *  @lib FileManagerView.lib
       
    38  *  @since S60 3.1
       
    39  */
       
    40 NONSHARABLE_CLASS(CFileManagerGlobalQueryDlg) : public CActive
       
    41     {
       
    42 
       
    43 public:  // New functions
       
    44     /**
       
    45      * Two-phased constructor.
       
    46      */
       
    47 	static CFileManagerGlobalQueryDlg* NewL();
       
    48 
       
    49     /**
       
    50      * Destructor
       
    51      */
       
    52     ~CFileManagerGlobalQueryDlg();
       
    53 
       
    54     /**
       
    55      * Sets global query observer
       
    56      *
       
    57      * @since S60 3.1
       
    58      * @param aObserver Pointer to observer
       
    59      */
       
    60     void SetObserver(
       
    61         MFileManagerGlobalDlgObserver* aObserver );
       
    62 
       
    63     /**
       
    64      * Cancels global query
       
    65      *
       
    66      * @since S60 3.1
       
    67      */
       
    68     void CancelDialog();
       
    69 
       
    70     /**
       
    71      * Shows global query
       
    72      *
       
    73      * @since S60 3.1
       
    74      * @param aText Text to display
       
    75      * @param aSkId Softkeys to display
       
    76      */
       
    77     void ShowDialogL(
       
    78         const TDesC& aText,
       
    79         const TInt aSkId = 0 );
       
    80 
       
    81     /**
       
    82      * Shows global query
       
    83      *
       
    84      * @since S60 3.1
       
    85      * @param aTextId TextId to display
       
    86      * @param aSkId Softkeys to display
       
    87      */
       
    88     void ShowDialogL(
       
    89         const TInt aTextId,
       
    90         const TInt aSkId = 0 );
       
    91 
       
    92     /**
       
    93      * Shows global query
       
    94      *
       
    95      * @since S60 3.1
       
    96      * @param aText Text to display
       
    97      * @param aSkId Softkeys to display
       
    98      * @param aBitmapFile Bitmap file to use
       
    99      * @param aImageId Bitmap id to use
       
   100      * @param aMaskId Bitmap mask id to use
       
   101      */
       
   102     void ShowDialogL(
       
   103         const TDesC& aText,
       
   104         const TInt aSkId,
       
   105         const TDesC& aBitmapFile,
       
   106         const TInt aImageId,
       
   107         const TInt aMaskId );
       
   108 
       
   109 private: // From CActive
       
   110     /**
       
   111      * @see CActive
       
   112      */
       
   113     void DoCancel();
       
   114 
       
   115     /**
       
   116      * @see CActive
       
   117      */        
       
   118     void RunL();
       
   119 
       
   120 private:
       
   121     /**
       
   122      * Constructors
       
   123      */
       
   124     CFileManagerGlobalQueryDlg();
       
   125 
       
   126     void ConstructL();
       
   127 
       
   128     /**
       
   129      * Notifies global query observer
       
   130      * @param aValue Value to notify
       
   131      */
       
   132     void NotifyObserver( const TInt aValue );
       
   133 
       
   134 private: // Data   
       
   135     /**
       
   136      * Pointer to global query dialog
       
   137      * Own.
       
   138      */ 
       
   139     CAknGlobalConfirmationQuery* iQueryDialog;
       
   140 
       
   141     /**
       
   142      * Pointer to global query observer
       
   143      * Not own.
       
   144      */ 
       
   145     MFileManagerGlobalDlgObserver* iObserver;
       
   146 
       
   147     };
       
   148 
       
   149 #endif  // C_FILEMANAGERLOBALQUERYDLG_H   
       
   150             
       
   151 // End of File