gstreamer_test_apps/QtGSTPlayer/views.cpp
changeset 9 2a0f36a70380
child 11 1373546e05c6
equal deleted inserted replaced
8:4a7fac7dd34a 9:2a0f36a70380
       
     1 #include <hbmainwindow.h>
       
     2 #include <hbview.h>
       
     3 //#include <hbformview.h>
       
     4 
       
     5 #include "views.h"
       
     6 
       
     7 // Helper methods for retrieving the views used in this application
       
     8 namespace Views {
       
     9 
       
    10     // Store the mainwindow ptr here because we cannot call HbWidget::mainWindow() from these static functions.
       
    11     HbMainWindow *win;
       
    12     
       
    13 /*!
       
    14   Returns the pointer to folder view.
       
    15 */
       
    16     HbView *folderView()
       
    17     {
       
    18     	// 0 since folderView was added first to the main window
       
    19         return win->viewAt(0);
       
    20     }
       
    21 
       
    22 /*!
       
    23   Returns the pointer to settings view.
       
    24 */
       
    25   /*  HbFormView *settingsView()
       
    26     {
       
    27 	    // 1 since settingsView was the second view added
       
    28         return static_cast<HbFormView *>(win->viewAt(1));
       
    29     }
       
    30     */
       
    31 }