videoWidget = NULL;
playlistWidget = NULL;
stackCentralOldWidget= NULL;
-#ifndef HAVE_MAEMO
sysTray = NULL;
-#endif
fullscreenControls = NULL;
cryptedLabel = NULL;
controls = NULL;
inline void MainInterface::initSystray()
{
-#ifndef HAVE_MAEMO
bool b_systrayAvailable = QSystemTrayIcon::isSystemTrayAvailable();
bool b_systrayWanted = var_InheritBool( p_intf, "qt-system-tray" );
if( b_systrayAvailable && b_systrayWanted )
createSystray();
-#endif
}
inline void MainInterface::createStatusBar()
/*****************************************************************************
* Systray Icon and Systray Menu
*****************************************************************************/
-#ifndef HAVE_MAEMO
/**
* Create a SystemTray icon and a menu that would go with it.
* Connects to a click handler on the icon.
}
QVLCMenu::updateSystrayMenu( this, p_intf );
}
-#endif
void MainInterface::changeEvent(QEvent *event)
{
void MainInterface::setBoss()
{
THEMIM->pause();
-#ifndef HAVE_MAEMO
if( sysTray )
{
hide();
}
else
-#endif
{
showMinimized();
}
int controlVideo( int i_query, va_list args );
/* Getters */
-#ifndef HAVE_MAEMO
QSystemTrayIcon *getSysTray() { return sysTray; }
QMenu *getSysTrayMenu() { return systrayMenu; }
-#endif
int getControlsVisibilityStatus();
bool isPlDocked() { return ( b_plDocked != false ); }
bool isInterfaceFullScreen() { return b_interfaceFullScreen; }
/* */
QSettings *settings;
-#ifndef HAVE_MAEMO
QSystemTrayIcon *sysTray;
QMenu *systrayMenu;
-#endif
QString input_name;
QVBoxLayout *mainLayout;
void dockPlaylist( bool b_docked = true );
void toggleMinimalView( bool );
void togglePlaylist();
-#ifndef HAVE_MAEMO
void toggleUpdateSystrayMenu();
void showUpdateSystrayMenu();
void hideUpdateSystrayMenu();
-#endif
void toggleAdvancedButtons();
void toggleInterfaceFullScreen();
void toggleFSC();
#if 0
void visual();
#endif
-#ifndef HAVE_MAEMO
void handleSystrayClick( QSystemTrayIcon::ActivationReason );
void updateSystrayTooltipName( const QString& );
void updateSystrayTooltipStatus( int );
-#endif
void showCryptedLabel( bool );
void handleKeyPress( QKeyEvent * );
#undef POPUP_BOILERPLATE
#undef BAR_DADD
-#ifndef HAVE_MAEMO
/************************************************************************
* Systray Menu *
************************************************************************/
/* Set the menu */
mi->getSysTray()->setContextMenu( sysMenu );
}
-#endif
#undef PUSH_VAR
add_bool( "qt-minimal-view", false, QT_MINIMAL_MODE_TEXT,
QT_MINIMAL_MODE_TEXT, false );
- add_bool( "qt-system-tray", true, SYSTRAY_TEXT,
- SYSTRAY_LONGTEXT, false)
+ add_bool( "qt-system-tray",
+#ifdef HAVE_MAEMO
+ false,
+#else
+ true,
+#endif
+ SYSTRAY_TEXT, SYSTRAY_LONGTEXT, false)
add_bool( "qt-notification", true, NOTIFICATION_TEXT,
NOTIFICATION_LONGTEXT, false )
add_bool( "qt-start-minimized", false, MINIMIZED_TEXT,