Maemo: Tell file manager not to bother the user with expected updates.

This commit is contained in:
Christian Kandeler
2011-01-10 12:13:27 +01:00
parent 7e0c289edd
commit 549022b55f
4 changed files with 29 additions and 2 deletions

View File

@@ -36,6 +36,7 @@
#include "maemoconstants.h"
#include "maemodeviceconfigurations.h"
#include <coreplugin/filemanager.h>
#include <coreplugin/ssh/sshconnection.h>
#include <qt4projectmanager/qtversionmanager.h>
#include <utils/environment.h>
@@ -212,5 +213,16 @@ bool MaemoGlobal::callMaddeShellScript(QProcess &proc, const QString &maddeRoot,
return true;
}
MaemoGlobal::FileUpdate::FileUpdate(const QString &fileName)
: m_fileName(fileName)
{
Core::FileManager::instance()->expectFileChange(fileName);
}
MaemoGlobal::FileUpdate::~FileUpdate()
{
Core::FileManager::instance()->unexpectFileChange(m_fileName);
}
} // namespace Internal
} // namespace Qt4ProjectManager