aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/General/notifier
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2011-06-17 19:10:15 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2011-06-17 19:10:15 +0000
commit389657f53633d679b8a1acc676163939c7937160 (patch)
treeda3516caf606e994e56c28f219b37f106db0acc9 /src/plugins/General/notifier
parentc2edb25f8bf437eafc3a22c4260069fa31795c05 (diff)
downloadqmmp-389657f53633d679b8a1acc676163939c7937160.tar.gz
qmmp-389657f53633d679b8a1acc676163939c7937160.tar.bz2
qmmp-389657f53633d679b8a1acc676163939c7937160.zip
added new path for Psi+ notification
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@2229 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/General/notifier')
-rw-r--r--src/plugins/General/notifier/notifier.cpp13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/plugins/General/notifier/notifier.cpp b/src/plugins/General/notifier/notifier.cpp
index 5923ec90b..9b1cf5de6 100644
--- a/src/plugins/General/notifier/notifier.cpp
+++ b/src/plugins/General/notifier/notifier.cpp
@@ -1,5 +1,5 @@
/***************************************************************************
- * Copyright (C) 2008 by Ilya Kotov *
+ * Copyright (C) 2008-2011 by Ilya Kotov *
* forkotov02@hotmail.ru *
* *
* This program is free software; you can redistribute it and/or modify *
@@ -47,6 +47,7 @@ Notifier::Notifier(QObject *parent)
{
QFile::remove(QDir::homePath()+"/.psi/tune");
QFile::remove(QDir::homePath()+"/.psi-plus/tune");
+ QFile::remove(QDir::homePath()+"/.cache/Psi+/tune");
}
if (m_core->state() == Qmmp::Playing) //test message
showMetaData();
@@ -58,6 +59,7 @@ Notifier::~Notifier()
{
QFile::remove(QDir::homePath()+"/.psi/tune");
QFile::remove(QDir::homePath()+"/.psi-plus/tune");
+ QFile::remove(QDir::homePath()+"/.cache/Psi+/tune");
}
}
@@ -76,6 +78,7 @@ void Notifier::setState(Qmmp::State state)
{
QFile::remove(QDir::homePath()+"/.psi/tune");
QFile::remove(QDir::homePath()+"/.psi-plus/tune");
+ QFile::remove(QDir::homePath()+"/.cache/Psi+/tune");
}
break;
}
@@ -118,6 +121,14 @@ void Notifier::showMetaData()
file.write(data);
file.close();
}
+ QDir psi_plus_dir2(QDir::homePath()+"/.cache/Psi+/");
+ if(psi_plus_dir2.exists())
+ {
+ QFile file(QDir::homePath()+"/.cache/Psi+/tune");
+ file.open(QIODevice::WriteOnly | QIODevice::Text | QIODevice::Truncate);
+ file.write(data);
+ file.close();
+ }
}