ui/views/slideshowview/inc/glxslideshowview.h
author hgs
Mon, 17 May 2010 13:35:26 +0530
changeset 42 5e1df1b52eb3
parent 40 112f0ac2d1f0
child 54 0f0f3f26f787
permissions -rw-r--r--
201019_01

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