Commit 3754f8d4 authored by Martin Straka's avatar Martin Straka

Minor code refactoring again

parent 5bd05e6c
...@@ -35,3 +35,4 @@ QMAKE_BUNDLE_DATA += ios_icon ...@@ -35,3 +35,4 @@ QMAKE_BUNDLE_DATA += ios_icon
app_launch_images.files = $$files($${_PRO_FILE_PWD_}/ios/Images.xcassets/LaunchImage.launchimage/*.png) app_launch_images.files = $$files($${_PRO_FILE_PWD_}/ios/Images.xcassets/LaunchImage.launchimage/*.png)
QMAKE_BUNDLE_DATA += app_launch_images QMAKE_BUNDLE_DATA += app_launch_images
LIBS += -framework UIKit -framework MessageUI -framework MobileCoreServices LIBS += -framework UIKit -framework MessageUI -framework MobileCoreServices
...@@ -729,12 +729,9 @@ void Files::saveMsgFilesToDisk(const QString &userName, ...@@ -729,12 +729,9 @@ void Files::saveMsgFilesToDisk(const QString &userName,
QString targetPath; QString targetPath;
#ifdef Q_OS_IOS #ifdef Q_OS_IOS
targetPath = appMsgAttachDirPathiOS(msgIdStr); targetPath = appMsgAttachDirPathiOS(msgIdStr);
#else #else
targetPath = appMsgAttachDirPath(msgIdStr); targetPath = appMsgAttachDirPath(msgIdStr);
#endif #endif
QString destFilePath; QString destFilePath;
...@@ -748,13 +745,9 @@ void Files::saveMsgFilesToDisk(const QString &userName, ...@@ -748,13 +745,9 @@ void Files::saveMsgFilesToDisk(const QString &userName,
} }
#ifndef Q_OS_IOS #ifndef Q_OS_IOS
attachmentSavingNotification(destFilePath); attachmentSavingNotification(destFilePath);
#else #else
exportFilesiOS(destFilePaths, joinDirs(userName, msgIdStr)); exportFilesiOS(destFilePaths, joinDirs(userName, msgIdStr));
#endif #endif
} }
...@@ -774,12 +767,9 @@ void Files::saveAttachmentsToDiskZfo(const QVariant &attachModelVariant, ...@@ -774,12 +767,9 @@ void Files::saveAttachmentsToDiskZfo(const QVariant &attachModelVariant,
QString targetPath; QString targetPath;
#ifdef Q_OS_IOS #ifdef Q_OS_IOS
targetPath = appMsgAttachDirPathiOS(msgIdStr); targetPath = appMsgAttachDirPathiOS(msgIdStr);
#else #else
targetPath = appMsgAttachDirPath(msgIdStr); targetPath = appMsgAttachDirPath(msgIdStr);
#endif #endif
QString destFilePath; QString destFilePath;
...@@ -796,13 +786,9 @@ void Files::saveAttachmentsToDiskZfo(const QVariant &attachModelVariant, ...@@ -796,13 +786,9 @@ void Files::saveAttachmentsToDiskZfo(const QVariant &attachModelVariant,
} }
#ifndef Q_OS_IOS #ifndef Q_OS_IOS
attachmentSavingNotification(destFilePath); attachmentSavingNotification(destFilePath);
#else #else
exportFilesiOS(destFilePaths, msgIdStr); exportFilesiOS(destFilePaths, msgIdStr);
#endif #endif
} }
......
...@@ -50,7 +50,6 @@ QString appSendDirPath(void) ...@@ -50,7 +50,6 @@ QString appSendDirPath(void)
return existingAppPath(dfltAttachSavingLoc(), DATOVKA_SEND_DIR_NAME); return existingAppPath(dfltAttachSavingLoc(), DATOVKA_SEND_DIR_NAME);
} }
QString appCertDirPath(void) QString appCertDirPath(void)
{ {
return existingAppPath(dfltAttachSavingLoc(), DATOVKA_CERT_DIR_NAME); return existingAppPath(dfltAttachSavingLoc(), DATOVKA_CERT_DIR_NAME);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment