ui/viewplugins/externalviewplugin/inc/glxexternalviewplugin.h
author Sebastian Brannstrom <sebastianb@symbian.org>
Tue, 15 Jun 2010 15:48:10 +0100
branchGCC_SURGE
changeset 37 037d3521c147
parent 23 74c9f037fd5d
permissions -rw-r--r--
Bug 2941 - GCC compilation issues with debug macro string expansion fixed

/*
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "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: 
*
*/


#ifndef GLXEXTERNALVIEWPLUGIN_H
#define GLXEXTERNALVIEWPLUGIN_H

#include <QObject>
#include <glxstatemanager.h>
#include <qviewplugin.h>

class HbView;
class HbPushButton;
class QGraphicsGridLayout;

class GlxExternalViewPlugin : public QViewPlugin
{
    Q_OBJECT
    //Q_INTERFACES( QViewPlugin )

public:
    /**
     * Constructor.
     *
     */
    GlxExternalViewPlugin();

    /**
     * Destructor.
     *
     */
    virtual ~GlxExternalViewPlugin();

    /**
     * Interface method to create view.
     *
     */
    QGraphicsWidget* getView();

    void createView(){};
    
    /**
     * Interface method to destroy view.
     *
     */
    void destroyView();

    /**
     * Interface method to activate view.
     *
     * @param aParam Parameter required to activate the view.
     */
    void activateView();
    
    /**
     * Interface method to deactivate view.
     *
     */
    void deactivateView() ;
  
public slots: 
    void back(){};
    void externalCommand(int cmdId);
    void orientationChange( Qt::Orientation orientation );
      
private:

    HbView* iView;

    HbPushButton* collectionButton;
    HbPushButton* imageButton;
    
    QGraphicsGridLayout* iLayout;
	GlxStateManager mStateMgr;
    
};


#endif //GLXEXTERNALVIEWPLUGIN_H