Q_OBJECT
public:
-#ifdef WIN32
- QVLCApp( intf_thread_t *p_intf, int & argc, char ** argv ) : QApplication( argc, argv, true )
- {
- connect( this, SIGNAL(quitSignal()), this, SLOT(quit()) );
- CONNECT( this, playPauseSignal(), THEMIM, togglePlayPause() );
- CONNECT( this, prevSignal(), THEMIM, prev() );
- CONNECT( this, nextSignal(), THEMIM, next() );
- }
-#else
QVLCApp( int & argc, char ** argv ) : QApplication( argc, argv, true )
{
connect( this, SIGNAL(quitSignal()), this, SLOT(quit()) );
}
-#endif
static void triggerQuit()
{
DefWindowProc( msg->hwnd, msg->message,
msg->wParam, msg->lParam );
break;
- case 0xC0C2: /* TaskbarButtonCreated */
- break;
- case WM_COMMAND:
- if (HIWORD(msg->wParam) == THBN_CLICKED)
- {
- switch(LOWORD(msg->wParam))
- {
- case 0:
- emit prevSignal();
- break;
- case 1:
- emit playPauseSignal();
- break;
- case 2:
- emit nextSignal();
- break;
- }
- }
- break;
}
return false;
}
signals:
void quitSignal();
- void playPauseSignal();
- void prevSignal();
- void nextSignal();
};