browserutilities/browserdialogsprovider/Inc/BrowserViewImagesPopup.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Fri, 19 Mar 2010 09:52:28 +0200
changeset 65 5bfc169077b2
parent 36 0ed94ceaa377
child 68 92a765b5b3e7
permissions -rw-r--r--
Revision: 201006 Kit: 201011

/*
* 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