[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdenetwork/kopete/protocols/wlm
From: Tiago Salem Herrmann <tiagosh () gmail ! com>
Date: 2009-06-30 21:19:52
Message-ID: 1246396792.337645.20847.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 989764 by salem:
- add method to delete temporary files (such as incoming inks and voiceclips)
M +8 -0 wlmchatsession.cpp
M +2 -0 wlmchatsession.h
--- trunk/KDE/kdenetwork/kopete/protocols/wlm/wlmchatsession.cpp #989763:989764
@@ -347,8 +347,16 @@
delete getChatService ();
setChatService(NULL);
}
+ for (int i = 0; i < m_filesToRemove.size(); ++i)
+ QFile::remove(m_filesToRemove.at(i));
}
+void
+WlmChatSession::addFileToRemove (QString path)
+{
+ m_filesToRemove << path;
+}
+
bool
WlmChatSession::isConnecting()
{
--- trunk/KDE/kdenetwork/kopete/protocols/wlm/wlmchatsession.h #989763:989764
@@ -40,6 +40,7 @@
virtual ~WlmChatSession ();
void setReady (bool value);
bool isReady ();
+ void addFileToRemove(QString path);
void setChatService (MSN::SwitchboardServerConnection * conn);
bool isConnecting();
MSN::SwitchboardServerConnection * getChatService ()
@@ -107,6 +108,7 @@
KActionMenu * m_actionInvite;
QList < KAction* > m_inviteactions;
QTimer * m_keepalivetimer;
+ QStringList m_filesToRemove;
};
#endif
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic