browserutilities/browserdialogsprovider/Inc/BrowserViewImagesPopup.h
author Pat Downey <patd@symbian.org>
Wed, 01 Sep 2010 12:28:30 +0100
branchRCL_3
changeset 49 919f36ff910f
parent 48 79859ed3eea9
permissions -rw-r--r--
Revert incorrect RCL_3 drop: Revision: 201034 Kit: 201035

/*
* Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of the License "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description: 
*      Declaration of view images popup listbox.
*
*
*/


#ifndef __VIEWIMAGESPOPUP_H
#define __VIEWIMAGESPOPUP_H

// INCLUDES
#include <e32base.h>
#include <e32def.h>
#include <aknpopup.h>
#include <aknlists.h>
#include <MdaImageConverter.h>

// Browser as a Plugin includes
#include <brctldialogsprovider.h>

// FORWARD DECLARATIONS
class CCoeControl;
class TCoeEvent;
class CEikListBox;
class TListBoxEvent;
class CAknsListBoxBackgroundControlContext;
class TBrCtlImageCarrier;
class CPhotoOperationWait;
class CBrowserViewImagesListBox;


class CBrowserViewImagesPopup : public CAknPopupList
    {
    // Creation and Destruction
    public:

        CBrowserViewImagesPopup();
        virtual ~CBrowserViewImagesPopup();

        void ConstructL( CArrayFixFlat<TBrCtlImageCarrier>& aPageImages );

    public:       

        void HandleListBoxEventL( CEikListBox* aListBox, 
                                                    TListBoxEvent aEventType );
        void HandleControlEventL( CCoeControl* aControl, TCoeEvent aEventType );

        void ProcessCommandL(TInt aCommandId);

        static void PhotoOperationL(const TBrCtlImageCarrier& aImg, CPhotoOperationWait* aPhotoOperationWait = NULL);
        

    protected:

        void ConstructL( CEikListBox *aListBox, TInt aCbaResource, 
                          AknPopupLayouts::TAknPopupLayouts aType = 
                                                AknPopupLayouts::EMenuWindow );
        
        void AttemptExitL(TBool aAccept);

    private:

        void PhotoOperationL();
        void LaunchPhotoAlbumL();
        TBool IsAppShutterActive();

    private: // from MObjectProvider

        TTypeUid::Ptr MopSupplyObject(TTypeUid aId);    

    private:
        
        CPhotoOperationWait* iPhotoOperationWait;
        CAknsListBoxBackgroundControlContext* iSkinContext;

        CBrowserViewImagesListBox* iListBox;
    };

#endif // __VIEWIMAGESPOPUP_H

// End of file