Commit 865a87c5 authored by Thomas Branch's avatar Thomas Branch Committed by Albert Astals Cid
Browse files

Fix compile on Windows (more)

KDEGAMES_EXPORT is for library code (which those classes used to be part
of), but since they're now inside the app itself we don't need to worry
about symbol export/import

Differential Revision:
parent 6048355a
......@@ -40,23 +40,23 @@ extern ManagerPrivate *internal;
* Get the current game type.
KDEGAMES_EXPORT uint gameType();
uint gameType();
* Set the current game type.
KDEGAMES_EXPORT void setGameType(uint gameType);
void setGameType(uint gameType);
* Configure the highscores.
* @return true if the configuration has been modified and saved
KDEGAMES_EXPORT bool configure(QWidget *parent);
bool configure(QWidget *parent);
* Show the highscores lists.
KDEGAMES_EXPORT void show(QWidget *parent);
void show(QWidget *parent);
* Submit a score. See @ref Manager for usage example.
......@@ -64,19 +64,19 @@ KDEGAMES_EXPORT void show(QWidget *parent);
* @param score the players score
* @param widget a widget used as parent for error message box.
KDEGAMES_EXPORT void submitScore(const Score &score, QWidget *widget);
void submitScore(const Score &score, QWidget *widget);
* @return the last score in the local list of highscores. The worst possible
* score if there are less items than the maximum number.
KDEGAMES_EXPORT Score lastScore();
Score lastScore();
* @return the first score in the local list of highscores (the worst possible
* score if there is no entry).
KDEGAMES_EXPORT Score firstScore();
Score firstScore();
* This class manages highscores and players entries (several players can
......@@ -137,7 +137,7 @@ KDEGAMES_EXPORT Score firstScore();
* and the value of the items that you have optionally added
* with Score::setData() player name and date are set automatically.
class Manager
......@@ -36,7 +36,7 @@ namespace KExtHighscore
* a highscore element (such as the score, the date, ...) or a player
* info (such as the player name, the best score, ...).
class Item
......@@ -168,14 +168,14 @@ class KDEGAMES_EXPORT Item
enum ScoreType { Won = 0, Lost = -1, Draw = -2 };
class Score;
KDEGAMES_EXPORT QDataStream &operator <<(QDataStream &stream, const Score &score);
KDEGAMES_EXPORT QDataStream &operator >>(QDataStream &stream, Score &score);
QDataStream &operator <<(QDataStream &stream, const Score &score);
QDataStream &operator >>(QDataStream &stream, Score &score);
* This class contains data for a score. You should not inherit from
* this class but reimplement the methods in Highscores.
class Score
Score(ScoreType type = Won);
......@@ -240,13 +240,13 @@ class KDEGAMES_EXPORT Score
friend class MultiplayerScores;
friend KDEGAMES_EXPORT QDataStream &operator <<(QDataStream &stream, const Score &score);
friend KDEGAMES_EXPORT QDataStream &operator >>(QDataStream &stream, Score &score);
friend QDataStream &operator <<(QDataStream &stream, const Score &score);
friend QDataStream &operator >>(QDataStream &stream, Score &score);
class MultiplayerScores;
KDEGAMES_EXPORT QDataStream &operator <<(QDataStream &stream, const MultiplayerScores &score);
KDEGAMES_EXPORT QDataStream &operator >>(QDataStream &stream, MultiplayerScores &score);
QDataStream &operator <<(QDataStream &stream, const MultiplayerScores &score);
QDataStream &operator >>(QDataStream &stream, MultiplayerScores &score);
* This class is used to store and show scores for multiplayer games.
......@@ -268,7 +268,7 @@ KDEGAMES_EXPORT QDataStream &operator >>(QDataStream &stream, MultiplayerScores
* ms.addScore(1, score);
* </pre>
class KDEGAMES_EXPORT MultiplayerScores
class MultiplayerScores
......@@ -307,9 +307,9 @@ class KDEGAMES_EXPORT MultiplayerScores
class MultiplayerScoresPrivate;
MultiplayerScoresPrivate *d;
friend KDEGAMES_EXPORT QDataStream &operator <<(QDataStream &stream,
friend QDataStream &operator <<(QDataStream &stream,
const MultiplayerScores &score);
friend KDEGAMES_EXPORT QDataStream &operator >>(QDataStream &stream,
friend QDataStream &operator >>(QDataStream &stream,
MultiplayerScores &score);
Supports Markdown
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