browserutilities/browserdialogsprovider/Inc/BrowserViewImagesPopup.h
changeset 0 dd21522fd290
child 25 0ed94ceaa377
equal deleted inserted replaced
-1:000000000000 0:dd21522fd290
       
     1 /*
       
     2 * Copyright (c) 2002 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 the License "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 *      Declaration of view images popup listbox.
       
    16 *
       
    17 *
       
    18 */
       
    19 
       
    20 
       
    21 #ifndef __VIEWIMAGESPOPUP_H
       
    22 #define __VIEWIMAGESPOPUP_H
       
    23 
       
    24 // INCLUDES
       
    25 #include <e32base.h>
       
    26 #include <e32def.h>
       
    27 #include <aknpopup.h>
       
    28 #include <aknlists.h>
       
    29 #include <MdaImageConverter.h>
       
    30 
       
    31 // Browser as a Plugin includes
       
    32 #include <BrCtlDialogsProvider.h>
       
    33 
       
    34 // FORWARD DECLARATIONS
       
    35 class CCoeControl;
       
    36 class TCoeEvent;
       
    37 class CEikListBox;
       
    38 class TListBoxEvent;
       
    39 class CAknsListBoxBackgroundControlContext;
       
    40 class TBrCtlImageCarrier;
       
    41 class CPhotoOperationWait;
       
    42 class CBrowserViewImagesListBox;
       
    43 
       
    44 
       
    45 class CBrowserViewImagesPopup : public CAknPopupList
       
    46     {
       
    47     // Creation and Destruction
       
    48     public:
       
    49 
       
    50         CBrowserViewImagesPopup();
       
    51         virtual ~CBrowserViewImagesPopup();
       
    52 
       
    53         void ConstructL( CArrayFixFlat<TBrCtlImageCarrier>& aPageImages );
       
    54 
       
    55     public:       
       
    56 
       
    57         void HandleListBoxEventL( CEikListBox* aListBox, 
       
    58                                                     TListBoxEvent aEventType );
       
    59         void HandleControlEventL( CCoeControl* aControl, TCoeEvent aEventType );
       
    60 
       
    61         void ProcessCommandL(TInt aCommandId);
       
    62 
       
    63         static void PhotoOperationL(const TBrCtlImageCarrier& aImg, CPhotoOperationWait* aPhotoOperationWait = NULL);
       
    64         
       
    65 
       
    66     protected:
       
    67 
       
    68         void ConstructL( CEikListBox *aListBox, TInt aCbaResource, 
       
    69                           AknPopupLayouts::TAknPopupLayouts aType = 
       
    70                                                 AknPopupLayouts::EMenuWindow );
       
    71         
       
    72         void AttemptExitL(TBool aAccept);
       
    73 
       
    74     private:
       
    75 
       
    76         void PhotoOperationL();
       
    77         void LaunchPhotoAlbumL();
       
    78         TBool IsAppShutterActive();
       
    79 
       
    80     private: // from MObjectProvider
       
    81 
       
    82         TTypeUid::Ptr MopSupplyObject(TTypeUid aId);    
       
    83 
       
    84     private:
       
    85         
       
    86         CPhotoOperationWait* iPhotoOperationWait;
       
    87         CAknsListBoxBackgroundControlContext* iSkinContext;
       
    88 
       
    89         CBrowserViewImagesListBox* iListBox;
       
    90     };
       
    91 
       
    92 #endif // __VIEWIMAGESPOPUP_H
       
    93 
       
    94 // End of file