Parent: [4ec6db] (diff)

Child: [c8d662] (diff)

Download this file

globals.h    125 lines (101 with data), 3.1 kB

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
/* Copyright (C) 2012 Lucio Carreras
*
* This file is part of sayonara player
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT SANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef GLOBALS_H_
#define GLOBALS_H_
#include <QString>
#include <QDebug>
#define DARK_BLUE(x) QString("<font color=#0000FF>") + x + QString("</font>")
#define LIGHT_BLUE(x) QString("<font color=#8888FF>") + x + QString("</font>")
#define CAR_RET QString("<br />")
#define BOLD(x) QString("<b>") + x + QString("</b>")
#define BLACK(x) QString("<font color=#000000>") + x + QString("</font>")
// name, target, dark, string
#define LINK(n, t, d, s) if(d) s="<a href=\"t\">LIGHT_BLUE(n)</a>"; \
else s="<a href=\"t\">DARK_BLUE(n)</a>";
#define PLUGIN_NUM 5
#define PLUGIN_NONE 0
#define PLUGIN_LFM_RADIO 1
#define PLUGIN_STREAM 2
#define PLUGIN_PODCASTS 3
#define PLUGIN_EQUALIZER 4
#define PLUGIN_PLAYLIST_CHOOSER 5
#define PLUGIN_LEVEL 6
/*
#define PLUGIN_NAME_LFM_RADIO tr("Last.&fm")
#define PLUGIN_NAME_STREAM tr("&Stream")
#define PLUGIN_NAME_PODCASTS tr("P&odcasts")
#define PLUGIN_NAME_EQUALIZER tr("&Equalizer")
#define PLUGIN_NAME_PLAYLIST_CHOOSER tr("&Playlists")
*/
#define GOOGLE_IMG_ICON QString("icon")
#define GOOGLE_IMG_SMALL QString("small")
#define GOOGLE_IMG_MEDIUM QString("medium")
#define GOOGLE_IMG_LARGE QString("large")
#define GOOGLE_IMG_XLARGE QString("xlarge")
#define GOOGLE_IMG_XXLARGE QString("xxlarge")
#define GOOGLE_IMG_HUGE QString("huge")
#define GOOGLE_FT_JPG QString("jpg")
#define GOOGLE_FT_PNG QString("png")
#define GOOGLE_FT_GIF QString("gif")
#define GOOGLE_FT_BMP QString("bmp")
#define SINGLETON(x) private: \
x(); \
x(const x&); \
x& operator=(const x&); \
\
public:\
virtual ~x(); \
\
static x* getInstance(){ \
static x inst; \
return &inst; \
}\
namespace Sort{
enum SortOrder{
NoSorting=0,
ArtistNameAsc,
ArtistNameDesc,
ArtistTrackcountAsc,
ArtistTrackcountDesc,
AlbumNameAsc,
AlbumNameDesc,
AlbumYearAsc,
AlbumYearDesc,
AlbumTracksAsc,
AlbumTracksDesc,
AlbumDurationAsc,
AlbumDurationDesc,
TrackNumAsc,
TrackNumDesc,
TrackTitleAsc,
TrackTitleDesc,
TrackAlbumAsc,
TrackAlbumDesc,
TrackArtistAsc,
TrackArtistDesc,
TrackYearAsc,
TrackYearDesc,
TrackLenghtAsc,
TrackLengthDesc,
TrackBitrateAsc,
TrackBitrateDesc,
TrackSizeAsc,
TrackSizeDesc,
TrackDiscnumberAsc,
TrackDiscnumberDesc
};
};
#endif /* GLOBALS_H_ */