QtGSTPlayer/views.cpp
author hgs
Fri, 30 Apr 2010 19:11:56 -0500
changeset 19 24ed0baaf8e5
parent 16 8e837d1bf446
permissions -rw-r--r--
201017

#include <hbmainwindow.h>
#include <hbview.h>
//#include <hbformview.h>

#include "views.h"

// Helper methods for retrieving the views used in this application
namespace Views {

    // Store the mainwindow ptr here because we cannot call HbWidget::mainWindow() from these static functions.
    HbMainWindow *win;
    
/*!
  Returns the pointer to folder view.
*/
    HbView *folderView()
    {
    	// 0 since folderView was added first to the main window
        return win->viewAt(0);
    }

/*!
  Returns the pointer to settings view.
*/
  /*  HbFormView *settingsView()
    {
	    // 1 since settingsView was the second view added
        return static_cast<HbFormView *>(win->viewAt(1));
    }
    */
}