forked from lubuwest/Friendiqa
OAuth and bugfixes
This commit is contained in:
parent
e58a1f69dc
commit
d43c18bb76
65 changed files with 1681 additions and 1494 deletions
|
@ -68,10 +68,7 @@ bool FILESYSTEM::Visibility()
|
|||
|
||||
QString FILESYSTEM::homePath() const
|
||||
{
|
||||
//QDir dir(m_Directory);
|
||||
//
|
||||
QString homeDir=QStandardPaths::writableLocation(QStandardPaths::AppDataLocation);;
|
||||
//qDebug(homeDir);
|
||||
return homeDir;
|
||||
}
|
||||
|
||||
|
@ -96,11 +93,9 @@ void FILESYSTEM::makeDir(QString name)
|
|||
{
|
||||
QDir dir(m_Directory);
|
||||
if (dir.mkdir(name)){
|
||||
//qDebug() << "makedir success" <<name;
|
||||
emit success(name);
|
||||
}
|
||||
else {
|
||||
qDebug() << "makedir error" <<name;
|
||||
emit error(name,1);
|
||||
}
|
||||
}
|
||||
|
@ -109,7 +104,6 @@ void FILESYSTEM::makePath(QString name)
|
|||
{
|
||||
QDir dir(m_Directory);
|
||||
if (dir.mkpath(name)){
|
||||
//qDebug() << "makepath success" <<name;
|
||||
emit success(name);
|
||||
}
|
||||
else {
|
||||
|
@ -120,7 +114,6 @@ void FILESYSTEM::makePath(QString name)
|
|||
void FILESYSTEM::rmDir()
|
||||
{
|
||||
QDir dir(m_Directory);
|
||||
//qDebug()<<m_Directory;
|
||||
if (dir.removeRecursively()){
|
||||
emit success(m_Directory);
|
||||
}
|
||||
|
@ -130,8 +123,6 @@ void FILESYSTEM::rmDir()
|
|||
void FILESYSTEM::rmFile(QString name)
|
||||
{
|
||||
QDir dir(m_Directory);
|
||||
//qDebug()<<m_Directory;
|
||||
//qDebug(name);
|
||||
if(dir.remove(name)){
|
||||
emit success(name);
|
||||
}
|
||||
|
@ -144,8 +135,6 @@ QFileInfoList FILESYSTEM::fileList()
|
|||
filters << "*.png" <<"*.PNG" << "*.jpg" << "*.JPG" << "*.JPEG";
|
||||
dir.setNameFilters(filters);
|
||||
dir.setSorting(QDir::Time | QDir::Reversed);
|
||||
//QStringList m_Filelist=dir.entryInfoList();
|
||||
//qDebug() << "filelist " << m_Filelist;
|
||||
return dir.entryInfoList();
|
||||
}
|
||||
|
||||
|
@ -185,3 +174,13 @@ void FILESYSTEM::setAutostart(bool autostart) {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
QString FILESYSTEM::osType() const
|
||||
{
|
||||
return QSysInfo::productType();
|
||||
}
|
||||
|
||||
QString FILESYSTEM::hostname() const
|
||||
{
|
||||
return QSysInfo::machineHostName();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue