Skip to content

Commit 4d1f482

Browse files
authored
Merge pull request #22 from Mazhoon/codeCompatibilityUpdates
Code compatibility updates
2 parents b0260e6 + 643562d commit 4d1f482

27 files changed

+28
-28
lines changed

CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required( VERSION 3.0 FATAL_ERROR )
1+
cmake_minimum_required( VERSION 3.5 FATAL_ERROR )
22

33
project( libmygpo-qt )
44

src/AddRemoveResult.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ class MYGPO_EXPORT AddRemoveResult : public QObject
5252
Q_DISABLE_COPY( AddRemoveResult )
5353
AddRemoveResultPrivate* const d;
5454
friend class AddRemoveResultPrivate;
55-
signals:
55+
Q_SIGNALS:
5656
/**Gets emitted when the data is ready to read*/
5757
void finished();
5858
/**Gets emitted when an parse error ocurred*/

src/AddRemoveResult_p.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,11 @@ class AddRemoveResultPrivate : public QObject
4949

5050
bool parse( const QVariant& data );
5151
bool parse( const QByteArray& data );
52-
private slots:
52+
private Q_SLOTS:
5353
void parseData();
5454
void error( QNetworkReply::NetworkError error );
5555
};
5656

5757
}
5858

59-
#endif //ADDREMOVERESULT_PRIVATE_H
59+
#endif //ADDREMOVERESULT_PRIVATE_H

src/DeviceList.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class MYGPO_EXPORT DeviceList : public QObject
4949
Q_DISABLE_COPY( DeviceList )
5050
DeviceListPrivate* const d;
5151
friend class DeviceListPrivate;
52-
signals:
52+
Q_SIGNALS:
5353
/**Gets emitted when the data is ready to read*/
5454
void finished();
5555
/**Gets emitted when an parse error ocurred*/

src/DeviceList_p.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class DeviceListPrivate : public QObject
4747
bool parse( const QVariant& data );
4848
bool parse( const QByteArray& data );
4949

50-
private slots:
50+
private Q_SLOTS:
5151
void parseData();
5252
void error( QNetworkReply::NetworkError error );
5353
};

src/DeviceSyncResult.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class MYGPO_EXPORT DeviceSyncResult : public QObject
5050
Q_DISABLE_COPY( DeviceSyncResult )
5151
DeviceSyncResultPrivate* const d;
5252
friend class DeviceSyncResultPrivate;
53-
signals:
53+
Q_SIGNALS:
5454
/**Gets emitted when the data is ready to read*/
5555
void finished();
5656
/**Gets emitted when an parse error ocurred*/

src/DeviceSyncResult_p.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class DeviceSyncResultPrivate : public QObject
4747

4848
bool parse( const QVariant& data );
4949
bool parse( const QByteArray& data );
50-
private slots:
50+
private Q_SLOTS:
5151
void parseData();
5252
void error( QNetworkReply::NetworkError error );
5353

src/DeviceUpdates.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class MYGPO_EXPORT DeviceUpdates : public QObject
5656
Q_DISABLE_COPY( DeviceUpdates )
5757
DeviceUpdatesPrivate* const d;
5858
friend class DeviceUpdatesPrivate;
59-
signals:
59+
Q_SIGNALS:
6060
/**Gets emitted when the data is ready to read*/
6161
void finished();
6262
/**Gets emitted when an parse error ocurred*/

src/DeviceUpdates_p.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class DeviceUpdatesPrivate : public QObject
5656
bool parse( const QVariant& data );
5757
bool parse( const QByteArray& data );
5858

59-
private slots:
59+
private Q_SLOTS:
6060
void parseData();
6161
void error( QNetworkReply::NetworkError error );
6262

src/Episode.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ class MYGPO_EXPORT Episode : public QObject
7777
Q_DISABLE_COPY( Episode )
7878
EpisodePrivate* const d;
7979
friend class EpisodePrivate;
80-
signals:
80+
Q_SIGNALS:
8181
/**Gets emitted when the data is ready to read*/
8282
void finished();
8383
/**Gets emitted when an parse error ocurred*/

src/EpisodeAction.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
using namespace mygpo;
2828

29-
static qulonglong c_maxlonglong = (2^64)-1;
29+
static qulonglong c_maxlonglong = ULLONG_MAX;
3030

3131
EpisodeActionPrivate::EpisodeActionPrivate( EpisodeAction* qq, const QVariant& variant, QObject* parent ) : QObject( parent ), q( qq )
3232
{

src/EpisodeActionList.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ class MYGPO_EXPORT EpisodeActionList : public QObject
5252
private:
5353
EpisodeActionListPrivate* const d;
5454
friend class EpisodeActionListPrivate;
55-
signals:
55+
Q_SIGNALS:
5656
/**Gets emitted when the data is ready to read*/
5757
void finished();
5858
/**Gets emitted when an parse error ocurred*/

src/EpisodeActionList_p.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class EpisodeActionListPrivate : public QObject
5050
bool parse( const QVariant& data );
5151
bool parse( const QByteArray& data );
5252

53-
private slots:
53+
private Q_SLOTS:
5454
void parseData();
5555
void error( QNetworkReply::NetworkError error );
5656

src/EpisodeList.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class MYGPO_EXPORT EpisodeList : public QObject
4949
private:
5050
EpisodeListPrivate* const d;
5151
friend class EpisodeListPrivate;
52-
signals:
52+
Q_SIGNALS:
5353
/**Gets emitted when the data is ready to read*/
5454
void finished();
5555
/**Gets emitted when an parse error ocurred*/

src/EpisodeList_p.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class EpisodeListPrivate : QObject
4646
bool parse( const QVariant& data );
4747
bool parse( const QByteArray& data );
4848

49-
private slots:
49+
private Q_SLOTS:
5050
void parseData();
5151
void error( QNetworkReply::NetworkError error );
5252

src/Episode_p.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ class EpisodePrivate : QObject
6060
QNetworkReply::NetworkError m_error;
6161
bool parse ( const QVariant& data );
6262
bool parse ( const QByteArray& data );
63-
private slots:
63+
private Q_SLOTS:
6464
void parseData();
6565
void error ( QNetworkReply::NetworkError error );
6666

src/JsonCreator.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232

3333
using namespace mygpo;
3434

35-
static qulonglong c_maxlonglong = (2^64)-1;
35+
static qulonglong c_maxlonglong = ULLONG_MAX;
3636

3737
QByteArray JsonCreator::addRemoveSubsToJSON( const QList< QUrl >& add, const QList< QUrl >& remove )
3838
{

src/Podcast.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ class MYGPO_EXPORT Podcast : public QObject
6666
PodcastPrivate* const d;
6767
friend class PodcastPrivate;
6868
bool m_copy; //true if this object was created by the copy-ctor
69-
signals:
69+
Q_SIGNALS:
7070
/**Gets emitted when the data is ready to read*/
7171
void finished();
7272
/**Gets emitted when an parse error ocurred*/

src/PodcastList.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class MYGPO_EXPORT PodcastList : public QObject
5050
PodcastListPrivate* const d;
5151
friend class PodcastListPrivate;
5252

53-
signals:
53+
Q_SIGNALS:
5454
/**Gets emitted when the data is ready to read*/
5555
void finished();
5656
/**Gets emitted when an parse error ocurred*/

src/PodcastList_p.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class PodcastListPrivate : QObject
4545

4646
bool parse( const QVariant& data );
4747
bool parse( const QByteArray& data );
48-
private slots:
48+
private Q_SLOTS:
4949
void parseData();
5050
void error( QNetworkReply::NetworkError error );
5151
};

src/Podcast_p.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ class PodcastPrivate : QObject
6161

6262
bool parse( const QVariant& data );
6363
bool parse( const QByteArray& data );
64-
private slots:
64+
private Q_SLOTS:
6565
void parseData();
6666
void error( QNetworkReply::NetworkError error );
6767
};

src/Settings.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class MYGPO_EXPORT Settings : public QObject
5050
Q_DISABLE_COPY( Settings )
5151
SettingsPrivate* d;
5252
friend class SettingsPrivate;
53-
signals:
53+
Q_SIGNALS:
5454
/**Gets emitted when the data is ready to read*/
5555
void finished();
5656
/**Gets emitted when an parse error ocurred*/

src/Settings_p.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class SettingsPrivate : public QObject
4747
bool parse( const QVariant& data );
4848
bool parse( const QByteArray& data );
4949

50-
private slots:
50+
private Q_SLOTS:
5151
void parseData();
5252
void error( QNetworkReply::NetworkError error );
5353

src/TagList.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class MYGPO_EXPORT TagList : public QObject
4848
Q_DISABLE_COPY( TagList )
4949
TagListPrivate* const d;
5050
friend class TagListPrivate;
51-
signals:
51+
Q_SIGNALS:
5252
/**Gets emitted when the data is ready to read*/
5353
void finished();
5454
/**Gets emitted when an parse error ocurred*/

src/TagList_p.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class TagListPrivate : public QObject
4646

4747
bool parse( const QVariant& data );
4848
bool parse( const QByteArray& data );
49-
private slots:
49+
private Q_SLOTS:
5050
void parseData();
5151
void error( QNetworkReply::NetworkError error );
5252
};

tests/JsonCreatorTest.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class JsonCreatorTest : public QObject {
3636
public:
3737
JsonCreatorTest();
3838
virtual ~JsonCreatorTest();
39-
private slots:
39+
private Q_SLOTS:
4040
void initTestCase();
4141
void cleanupTestCase();
4242
void init();

tests/UrlBuilderTest.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class UrlBuilderTest : public QObject {
3636
public:
3737
UrlBuilderTest();
3838
virtual ~UrlBuilderTest();
39-
private slots:
39+
private Q_SLOTS:
4040
void initTestCase();
4141
void cleanupTestCase();
4242
void init();

0 commit comments

Comments
 (0)