ui/views/slideshowview/inc/glxslideshowview.h
changeset 23 74c9f037fd5d
child 26 c499df2dbb33
equal deleted inserted replaced
5:f7f0874bfe7d 23:74c9f037fd5d
       
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:   ?Description
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef GLXSLIDESHOWVIEW_H
       
    21 #define GLXSLIDESHOWVIEW_H
       
    22 
       
    23 //User Includes
       
    24 #include "glxview.h"
       
    25 #include "glxslideshowwidget.h"
       
    26 
       
    27 //Qt/Orbit forward declarations
       
    28 class HbMainWindow;
       
    29 class HbDocumentLoader;
       
    30 
       
    31 //User Includes forward Declaration
       
    32 class GlxView;
       
    33 class GlxSlideShowWidget;
       
    34 class CGlxHdmiController;
       
    35 
       
    36 
       
    37 class GlxSlideShowView : public GlxView
       
    38 {
       
    39     Q_OBJECT
       
    40 
       
    41 public:
       
    42     GlxSlideShowView(HbMainWindow *window,HbDocumentLoader *Docloader);
       
    43     ~GlxSlideShowView();
       
    44     void activate() ;
       
    45     void deActivate();
       
    46     void setModel(QAbstractItemModel *model);
       
    47     void setModelContext();
       
    48         
       
    49 public slots :
       
    50     void orientationChanged(Qt::Orientation);   
       
    51     void slideShowEventHandler( GlxSlideShowEvent e);
       
    52     void indexchanged();
       
    53     
       
    54 protected :
       
    55     bool event(QEvent *event);
       
    56     
       
    57 private:
       
    58     void loadObjects();
       
    59     void SetImageToHdmiL();
       
    60 private:
       
    61     QAbstractItemModel  *mModel;
       
    62     HbMainWindow        *mWindow;
       
    63     GlxSlideShowWidget  *mSlideShowWidget;    
       
    64     HbDocumentLoader    *mDocLoader; //Docml loader to load the widgets from docml
       
    65     CGlxHdmiController* iHdmiController;
       
    66 };
       
    67 
       
    68 #endif /*GLXSLIDESHOWVIEW_H*/