~MainWindow();
Phonon::SeekSlider* getSeekSlider() { return seekSlider; }
+public slots:
+ void showMedia(SearchParams *params);
+
protected:
void closeEvent(QCloseEvent *);
bool eventFilter(QObject *obj, QEvent *event);
void fadeInWidget(QWidget *oldWidget, QWidget *newWidget);
void goBack();
void showSearch();
- void showMedia(SearchParams *params);
void visitSite();
void donate();
void about();
#include <qtsingleapplication.h>
#include "constants.h"
#include "MainWindow.h"
+#include "searchparams.h"
#ifdef APP_MAC
// #include "local/mac/mac_startup.h"
#endif
// all string literals are UTF-8
QTextCodec::setCodecForCStrings(QTextCodec::codecForName("UTF-8"));
+ if (app.arguments().size() > 1) {
+ QString query = app.arguments().at(1);
+ SearchParams *searchParams = new SearchParams();
+ searchParams->setKeywords(query);
+ mainWin.showMedia(searchParams);
+ }
+
return app.exec();
}