+#if !defined(ANIPLAYER_NO_LOCALMYLIST)
+void VideoWindow::markWatched()
+{
+ using namespace LocalMyList;
+ if (m_marked)
+ {
+ menu->showMessage(tr("File already marked"));
+ return;
+ }
+ File f = MyList::instance()->database()->getFileByPath(QFileInfo(videoPlayer->currentFile()).canonicalFilePath());
+ if (!f.fid)
+ {
+ menu->showMessage(tr("File not in LocalMyList!"));
+ return;
+ }
+ if (f.myWatched.isValid())
+ {
+ menu->showMessage(tr("File already marked watched"));
+ return;
+ }
+ MyList::instance()->markWatched(f.fid);
+ menu->showMessage(tr("Mark watched request submitted to LocalMyList"));
+ m_marked = true;
+}
+#elif !defined(NO_ANIDBUDPCLIENT)