"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/common/utility.h" between
ownCloud-2.9.0.5150.tar.xz and ownCloud-2.9.1.5500.tar.xz

About: ownCloud Client (formerly "mirall") is a tool to synchronize files from ownCloud Server with your desktop client. It uses OCSync as its syncing backend.

utility.h  (ownCloud-2.9.0.5150.tar.xz):utility.h  (ownCloud-2.9.1.5500.tar.xz)
skipping to change at line 24 skipping to change at line 24
* *
* You should have received a copy of the GNU Lesser General Public * You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software * License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#ifndef UTILITY_H #ifndef UTILITY_H
#define UTILITY_H #define UTILITY_H
#include "ocsynclib.h" #include "ocsynclib.h"
#include <QString>
#include <QByteArray> #include <QByteArray>
#include <QDateTime> #include <QDateTime>
#include <QElapsedTimer> #include <QElapsedTimer>
#include <QLoggingCategory> #include <QLoggingCategory>
#include <QMap> #include <QMap>
#include <QMetaEnum>
#include <QString>
#include <QUrl> #include <QUrl>
#include <QUrlQuery> #include <QUrlQuery>
#include <functional> #include <functional>
#include <memory> #include <memory>
#ifdef Q_OS_WIN #ifdef Q_OS_WIN
#include <windows.h> #include <windows.h>
#endif #endif
class QSettings; class QSettings;
namespace OCC { namespace OCC {
class SyncJournal; class SyncJournal;
Q_DECLARE_LOGGING_CATEGORY(lcUtility) OCSYNC_EXPORT Q_DECLARE_LOGGING_CATEGORY(lcUtility)
/** \addtogroup libsync /** \addtogroup libsync
* @{ * @{
*/ */
namespace Utility { namespace Utility
{
OCSYNC_EXPORT void sleep(int sec); OCSYNC_EXPORT void sleep(int sec);
OCSYNC_EXPORT void usleep(int usec); OCSYNC_EXPORT void usleep(int usec);
OCSYNC_EXPORT QString formatFingerprint(const QByteArray &, bool colonSepara ted = true); OCSYNC_EXPORT QString formatFingerprint(const QByteArray &, bool colonSepara ted = true);
OCSYNC_EXPORT void setupFavLink(const QString &folder); OCSYNC_EXPORT void setupFavLink(const QString &folder);
OCSYNC_EXPORT bool writeRandomFile(const QString &fname, int size = -1); OCSYNC_EXPORT bool writeRandomFile(const QString &fname, int size = -1);
OCSYNC_EXPORT QString octetsToString(qint64 octets); OCSYNC_EXPORT QString octetsToString(qint64 octets);
OCSYNC_EXPORT QByteArray userAgentString(); OCSYNC_EXPORT QByteArray userAgentString();
/** /**
* @brief Return whether launch on startup is enabled system wide. * @brief Return whether launch on startup is enabled system wide.
* *
skipping to change at line 268 skipping to change at line 270
* https://doc.qt.io/Qt-5/qfileinfo.html#ntfs-permissions * https://doc.qt.io/Qt-5/qfileinfo.html#ntfs-permissions
*/ */
NtfsPermissionLookupRAII(); NtfsPermissionLookupRAII();
~NtfsPermissionLookupRAII(); ~NtfsPermissionLookupRAII();
private: private:
Q_DISABLE_COPY(NtfsPermissionLookupRAII); Q_DISABLE_COPY(NtfsPermissionLookupRAII);
}; };
#endif #endif
template <class E>
QString enumName(E value)
{
return QMetaEnum::fromType<E>().valueToKeys(value);
}
} }
/** @} */ // \addtogroup /** @} */ // \addtogroup
inline bool Utility::isWindows() inline bool Utility::isWindows()
{ {
#ifdef Q_OS_WIN #ifdef Q_OS_WIN
return true; return true;
#else #else
return false; return false;
#endif #endif
 End of changes. 6 change blocks. 
4 lines changed or deleted 12 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)