Commit 78ccf0ba authored by Karel Slaný's avatar Karel Slaný

Using pragma once in header files.

parent 982136bf
......@@ -21,6 +21,8 @@
* the two.
*/
#pragma once
#import <UIKit/UIKit.h>
#import <qt_app_delegate.h>
......
......@@ -21,6 +21,8 @@
* the two.
*/
#pragma once
#import <UIKit/UIKit.h>
@interface DocViewController : UIViewController <UIDocumentInteractionControllerDelegate>
......
......@@ -21,8 +21,7 @@
* the two.
*/
#ifndef _IOS_FILE_OPENER_H_
#define _IOS_FILE_OPENER_H_
#pragma once
#include <QtCore/QtGlobal>
......@@ -38,5 +37,3 @@
@end
#endif /* Q_OS_IOS */
#endif /* _IOS_FILE_OPENER_H_ */
......@@ -21,8 +21,7 @@
* the two.
*/
#ifndef QTAPPDELEGATECINTERFACE_H
#define QTAPPDELEGATECINTERFACE_H
#pragma once
#include "src/qml_interaction/interaction_zfo_file.h"
......@@ -33,5 +32,3 @@
* @param[in] interactionZfoFile Pointer to InteractionZfoFile object.
*/
void QtAppDelegateInitialize(InteractionZfoFile *interactionZfoFile);
#endif // QTAPPDELEGATECINTERFACE_H
......@@ -21,6 +21,8 @@
* the two.
*/
#pragma once
#import <UIKit/UIKit.h>
#import <MessageUI/MessageUI.h>
#import <MessageUI/MFMailComposeViewController.h>
......
......@@ -21,8 +21,7 @@
* the two.
*/
#ifndef _URL_OPENER_H_
#define _URL_OPENER_H_
#pragma once
#include <QObject>
#include <QString>
......@@ -64,5 +63,3 @@ public:
void createEmail(const QString &bodyText, const QString &to,
const QString &subject, const QStringList &filePaths);
};
#endif /* _URL_OPENER_H_ */
......@@ -21,8 +21,7 @@
* the two.
*/
#ifndef _COMMON_H_
#define _COMMON_H_
#pragma once
/* HTML INFO MACRO */
#define divStart "<div>"
......@@ -30,5 +29,3 @@
(QString("<div><strong>") + (title) + ": </strong>" + (value) + \
"</div>")
#define divEnd "</div>"
#endif /* _COMMON_H_ */
......@@ -21,9 +21,7 @@
* the two.
*/
#ifndef _CRYPTO_H_
#define _CRYPTO_H_
#pragma once
#ifdef __cplusplus
extern "C" {
......@@ -49,5 +47,3 @@ int extract_cms_data(const void *cms, const size_t cms_length,
#ifdef __cplusplus
} /* extern "C" */
#endif
#endif /* _CRYPTO_H_ */
......@@ -21,8 +21,7 @@
* the two.
*/
#ifndef _DIALOGUES_H_
#define _DIALOGUES_H_
#pragma once
#include <QObject>
......@@ -138,5 +137,3 @@ Q_DECLARE_OPERATORS_FOR_FLAGS(Dialogues::Buttons)
Q_DECLARE_METATYPE(Dialogues::EchoMode)
Q_DECLARE_METATYPE(Dialogues::Icon)
Q_DECLARE_METATYPE(Dialogues::Button)
#endif /* _DIALOGUES_H_ */
......@@ -21,8 +21,7 @@
* the two.
*/
#ifndef _QML_DIALOGUE_HELPER_H_
#define _QML_DIALOGUE_HELPER_H_
#pragma once
#include <QObject>
#include <QString>
......@@ -114,5 +113,3 @@ signals:
*/
void closed(int button, int customButton);
};
#endif /* _QML_DIALOGUE_HELPER_H_ */
......@@ -21,8 +21,7 @@
* the two.
*/
#ifndef _QML_INPUT_DIALOGUE_H_
#define _QML_INPUT_DIALOGUE_H_
#pragma once
#include <QEventLoop>
#include <QObject>
......@@ -99,5 +98,3 @@ private:
static
QObject *s_dlgTextInput; /*!< Persistent text input dialogue. */
};
#endif /* _QML_INPUT_DIALOGUE_H_ */
......@@ -21,8 +21,7 @@
* the two.
*/
#ifndef _QML_MESSAGE_DIALOGUE_H_
#define _QML_MESSAGE_DIALOGUE_H_
#pragma once
#include <QEventLoop>
#include <QObject>
......@@ -73,5 +72,3 @@ private:
bool m_alreadyReturned; /*!< True if dialogue closed before loop start. */
QEventLoop m_loop; /*!< Loop used for action blocking. */
};
#endif /* _QML_MESSAGE_DIALOGUE_H_ */
......@@ -21,8 +21,7 @@
* the two.
*/
#ifndef _WIDGET_INPUT_DIALOGUE_H_
#define _WIDGET_INPUT_DIALOGUE_H_
#pragma once
#include <QInputDialog>
#include <QLineEdit>
......@@ -89,5 +88,3 @@ private:
QPushButton *m_pasteButton; /*!< Convenience pointer to paste button. */
QObject *m_textField; /*!< Text field receiving the paste command. */
};
#endif /* _WIDGET_INPUT_DIALOGUE_H_ */
......@@ -21,8 +21,7 @@
* the two.
*/
#ifndef _WIDGET_MESSAGE_DIALOGUE_H_
#define _WIDGET_MESSAGE_DIALOGUE_H_
#pragma once
#include <QMessageBox>
#include <QString>
......@@ -78,5 +77,3 @@ public:
void errorMessage(enum QMessageBox::Icon icon, const QString &title,
const QString &text, const QString &infoText);
};
#endif /* _WIDGET_MESSAGE_DIALOGUE_H_ */
......@@ -21,8 +21,7 @@
* the two.
*/
#ifndef _ISDS_CONVERSION_H_
#define _ISDS_CONVERSION_H_
#pragma once
#include <QCoreApplication> // Q_DECLARE_TR_FUNCTIONS
#include <QString>
......@@ -76,5 +75,3 @@ public:
static
QString dmStatusToText(int status);
};
#endif /* _ISDS_CONVERSION_H_ */
......@@ -21,8 +21,7 @@
* the two.
*/
#ifndef _LOCKER_H_
#define _LOCKER_H_
#pragma once
#include <QObject>
#include <QTimer>
......@@ -102,5 +101,3 @@ private:
* be ignored.
*/
};
#endif /* _LOCKER_H_ */
......@@ -21,8 +21,7 @@
* the two.
*/
#ifndef _DATABOXMODEL_H_
#define _DATABOXMODEL_H_
#pragma once
#include <QAbstractListModel>
#include <QObject>
......@@ -335,5 +334,3 @@ private:
/* QML passes its arguments via QVariant. */
Q_DECLARE_METATYPE(DataboxListModel)
Q_DECLARE_METATYPE(DataboxListModel::Roles)
#endif /* _DATABOXMODEL_H_ */
......@@ -21,8 +21,7 @@
* the two.
*/
#ifndef _LIST_SORT_FILTER_PROXY_MODEL_H_
#define _LIST_SORT_FILTER_PROXY_MODEL_H_
#pragma once
#include <QList>
#include <QSortFilterProxyModel>
......@@ -131,5 +130,3 @@ private:
/* QML passes its arguments via QVariant. */
Q_DECLARE_METATYPE(ListSortFilterProxyModel)
#endif /* _LIST_SORT_FILTER_PROXY_MODEL_H_ */
......@@ -21,8 +21,7 @@
* the two.
*/
#ifndef _OS_ANDROID_H_
#define _OS_ANDROID_H_
#pragma once
#include <QObject>
......@@ -70,5 +69,3 @@ public slots:
private:
InteractionZfoFile &m_inter; /*!< QML interaction object. */
};
#endif /* _OS_ANDROID_H_ */
......@@ -21,8 +21,7 @@
* the two.
*/
#ifndef _INTERACTION_FILESYSTEM_H_
#define _INTERACTION_FILESYSTEM_H_
#pragma once
#include <QObject>
#include <QString>
......@@ -98,5 +97,3 @@ public:
/* QML passes its arguments via QVariant. */
Q_DECLARE_METATYPE(InteractionFilesystem)
Q_DECLARE_METATYPE(InteractionFilesystem::Location)
#endif /* _INTERACTION_FILESYSTEM_H_ */
......@@ -21,8 +21,7 @@
* the two.
*/
#ifndef _INTERACTION_ZFO_FILE_H_
#define _INTERACTION_ZFO_FILE_H_
#pragma once
#include <QObject>
......@@ -59,5 +58,3 @@ signals:
*/
void displayZfoFileContent(QString filePath);
};
#endif /* _INTERACTION_ZFO_FILE_H_ */
......@@ -21,8 +21,7 @@
* the two.
*/
#ifndef _MESSAGE_INFO_H_
#define _MESSAGE_INFO_H_
#pragma once
#include <QObject>
#include <QString>
......@@ -104,5 +103,3 @@ private:
/* QML passes its arguments via QVariant. */
Q_DECLARE_METATYPE(MsgInfo)
Q_DECLARE_METATYPE(MsgInfo::ZfoType)
#endif /* _MESSAGE_INFO_H_ */
......@@ -21,8 +21,7 @@
* the two.
*/
#ifndef _STRING_MANIPULATION_H_
#define _STRING_MANIPULATION_H_
#pragma once
#include <QObject>
#include <QString>
......@@ -43,5 +42,3 @@ public:
Q_INVOKABLE static
QString removeRich(const QString &inStr);
};
#endif /* _STRING_MANIPULATION_H_ */
......@@ -21,8 +21,7 @@
* the two.
*/
#ifndef _MESSAGE_EMITTER_H_
#define _MESSAGE_EMITTER_H_
#pragma once
#include <QObject>
......@@ -113,5 +112,3 @@ signals:
*/
void rmSyncFinishedSignal(QString userName, int accNumber, int accTotal);
};
#endif /* _MESSAGE_EMITTER_H_ */
......@@ -21,8 +21,7 @@
* the two.
*/
#ifndef _TASK_H_
#define _TASK_H_
#pragma once
#include <QRunnable>
#include <QString>
......@@ -39,5 +38,3 @@ public:
virtual
void run(void) = 0;
};
#endif /* _TASK_H_ */
......@@ -21,8 +21,7 @@
* the two.
*/
#ifndef _TASK_CHANGE_PASSWORD_H_
#define _TASK_CHANGE_PASSWORD_H_
#pragma once
#include "src/net/isds_session.h"
#include "src/net/net_layer.h"
......@@ -94,5 +93,3 @@ private:
QString m_oldPwd; /*!< Old password. */
QString m_newPwd; /*!< New password. */
};
#endif /* _TASK_CHANGE_PASSWORD_H_ */
......@@ -21,8 +21,7 @@
* the two.
*/
#ifndef _TASK_DOWNLOAD_DELIVERY_INFO_H_
#define _TASK_DOWNLOAD_DELIVERY_INFO_H_
#pragma once
#include "src/net/isds_session.h"
#include "src/net/net_layer.h"
......@@ -85,5 +84,3 @@ private:
NetLayer *m_netLayer; /*!< Pointer to network manager to send request. */
qint64 m_msgId; /*!< Message ID. */
};
#endif /* _TASK_DOWNLOAD_DELIVERY_INFO_H_ */
......@@ -21,8 +21,7 @@
* the two.
*/
#ifndef _TASK_DOWNLOAD_MESSAGE_H_
#define _TASK_DOWNLOAD_MESSAGE_H_
#pragma once
#include "src/models/messagemodel.h"
#include "src/net/isds_session.h"
......@@ -104,5 +103,3 @@ private:
bool m_saveZfo; /*!< Save ZFO to local storage. */
bool m_isTestAccount; /*!< True if account is ISDS testing. */
};
#endif /* _TASK_DOWNLOAD_MESSAGE_H_ */
......@@ -21,8 +21,7 @@
* the two.
*/
#ifndef _TASK_DOWNLOAD_MESSAGE_LIST_H_
#define _TASK_DOWNLOAD_MESSAGE_LIST_H_
#pragma once
#include <QString>
......@@ -135,5 +134,3 @@ private:
bool m_saveZfo; /*!< Save ZFO to local storage. */
bool m_isTestAccount; /*!< True if account is ISDS testing. */
};
#endif /* _TASK_DOWNLOAD_MESSAGE_LIST_H_ */
......@@ -21,8 +21,7 @@
* the two.
*/
#ifndef _TASK_FIND_DATABOX_H_
#define _TASK_FIND_DATABOX_H_
#pragma once
#include <QCoreApplication> /* Q_DECLARE_TR_FUNCTIONS */
......@@ -97,5 +96,3 @@ private:
const QString m_dbID; /*!< Sought data-box ID. */
const QString m_dbType; /*!< Sought data-box type. */
};
#endif /* _TASK_FIND_DATABOX_H_ */
......@@ -21,8 +21,7 @@
* the two.
*/
#ifndef _TASK_KEEP_ALIVE_H_
#define _TASK_KEEP_ALIVE_H_
#pragma once
#include <QRunnable>
#include <QString>
......@@ -57,5 +56,3 @@ private:
IsdsSession::IsdsContext m_ctx; /*!< Account isds context. */
NetLayer *m_netLayer; /*!< Pointer to network manager to send request. */
};
#endif /* _TASK_KEEP_ALIVE_H_ */
......@@ -21,8 +21,7 @@
* the two.
*/
#ifndef _TASK_SEND_SMS_H_
#define _TASK_SEND_SMS_H_
#pragma once
#include "src/net/isds_session.h"
#include "src/net/net_layer.h"
......@@ -79,5 +78,3 @@ private:
IsdsSession::IsdsContext m_ctx; /*!< Account isds context. */
NetLayer *m_netLayer; /*!< Pointer to network manager to send request. */
};
#endif /* _TASK_SEND_SMS_H_ */
......@@ -21,8 +21,7 @@
* the two.
*/
#ifndef ZFO_H
#define ZFO_H
#pragma once
#include <QObject>
......@@ -69,5 +68,3 @@ public:
Q_INVOKABLE static
void reduceZfoDbSize(unsigned int releaseSpaceInMB);
};
#endif // ZFO_H
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