From 389657f53633d679b8a1acc676163939c7937160 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Fri, 17 Jun 2011 19:10:15 +0000 Subject: 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 --- src/plugins/General/notifier/notifier.cpp | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'src/plugins/General/notifier') 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(); + } } -- cgit v1.2.3-13-gbd6f