aboutsummaryrefslogtreecommitdiff
path: root/oshelper.cpp
blob: cecae38ef7124ae93ca11f2cf253a2384366ae19 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#include "oshelper.h"
#include <QTemporaryFile>
#include <QDir>

OSHelper::OSHelper(QObject *parent) : QObject(parent)
{

}

QString OSHelper::temporaryFilename() const
{
    QString tempFileName;
    {
        QTemporaryFile f;
        f.open();
        tempFileName = f.fileName();
    }
    return tempFileName;
}

QString OSHelper::temporaryPath() const
{
    return QDir::tempPath();
}