ui/views/slideshowview/inc/glxslideshowview.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Fri, 11 Jun 2010 13:38:23 +0300
changeset 36 6481344a6d67
parent 33 1ee2af37811f
child 54 0f0f3f26f787
permissions -rw-r--r--
Revision: 201021 Kit: 2010123

/*
* 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:   ?Description
*
*/



#ifndef GLXSLIDESHOWVIEW_H
#define GLXSLIDESHOWVIEW_H

//User Includes
#include "glxview.h"
#include "glxslideshowwidget.h"

//Qt/Orbit forward declarations
class HbMainWindow;
class HbDocumentLoader;

//User Includes forward Declaration
class GlxView;
class GlxSlideShowWidget;
class GlxTvOutWrapper;

class GlxSlideShowView : public GlxView
{
    Q_OBJECT

public:
    GlxSlideShowView(HbMainWindow *window,HbDocumentLoader *Docloader);
    ~GlxSlideShowView();
    void activate() ;
    void deActivate();
    void setModel(QAbstractItemModel *model);
    void setModelContext();
        
public slots :
    void orientationChanged(Qt::Orientation);   
    void slideShowEventHandler( GlxSlideShowEvent e);
    void indexchanged();
    void modelDestroyed();
    
protected :
    bool eventFilter(QObject *obj, QEvent *ev);
    
private:
    void loadObjects();
private:
    QAbstractItemModel  *mModel;
    HbMainWindow        *mWindow;
    GlxSlideShowWidget  *mSlideShowWidget;    
    HbDocumentLoader    *mDocLoader; //Docml loader to load the widgets from docml
    GlxTvOutWrapper*    mTvOutWrapper;
};

#endif /*GLXSLIDESHOWVIEW_H*/