diff -r 1c3b8676e58c -r 232fbd5a2dcb ginebra2/Application.cpp --- a/ginebra2/Application.cpp Tue Jul 06 14:03:49 2010 +0300 +++ b/ginebra2/Application.cpp Wed Aug 18 09:37:05 2010 +0300 @@ -22,6 +22,11 @@ #include #include "Application.h" +#ifdef Q_OS_SYMBIAN +#include +#include // TApaTaskList, TApaTask +#endif + /* Application wraps the QApplication class to provide a JS interface. This could be implemented * as a derived class, but this would force the application developer to use this class instead * of QApplication. @@ -47,6 +52,16 @@ m_app->quit(); } +void GinebraApplication::sendToBackground() +{ + //qDebug() << "GinebraApplication::goToBackground()"; +#ifdef Q_OS_SYMBIAN + TApaTask task(CEikonEnv::Static()->WsSession()); + task.SetWgId(CEikonEnv::Static()->RootWin().Identifier()); + task.SendToBackground(); +#endif +} + void GinebraApplication::debug(const QString &msg) { qDebug() << msg; }