phonon/phononnamespace.h Source File

phononnamespace.h
Go to the documentation of this file.
1 /* This file is part of the KDE project
2  Copyright (C) 2005-2008 Matthias Kretz <kretz@kde.org>
3 
4  This library is free software; you can redistribute it and/or
5  modify it under the terms of the GNU Lesser General Public
6  License as published by the Free Software Foundation; either
7  version 2.1 of the License, or (at your option) version 3, or any
8  later version accepted by the membership of KDE e.V. (or its
9  successor approved by the membership of KDE e.V.), Nokia Corporation
10  (or its successors, if any) and the KDE Free Qt Foundation, which shall
11  act as a proxy defined in Section 6 of version 3 of the license.
12 
13  This library is distributed in the hope that it will be useful,
14  but WITHOUT ANY WARRANTY; without even the implied warranty of
15  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16  Lesser General Public License for more details.
17 
18  You should have received a copy of the GNU Lesser General Public
19  License along with this library. If not, see <http://www.gnu.org/licenses/>.
20 
21 */
22 
23 #ifndef PHONONNAMESPACE_H
24 #define PHONONNAMESPACE_H
25 
26 #include "phonon_export.h"
27 
28 #ifdef __QT_SYNCQT__
29 // Tell syncqt to create a "Global" header here
30 #pragma qt_class(Phonon::Global)
31 #endif
32 
39 #define PHONON_VERSION_CHECK(major, minor, patch) ((major<<16)|(minor<<8)|(patch))
40 
44 #define PHONON_VERSION PHONON_VERSION_CHECK(4, 4, 0)
45 
49 #define PHONON_VERSION_STR "4.4.0"
50 
53 
54 class QString;
55 
68 namespace Phonon
69 {
70  PHONON_EXPORT const char *phononVersion();
71 
77  enum DiscType {
82  NoDisc = -1,
86  Cd = 0,
90  Dvd = 1,
94  Vcd = 2
95  };
96 
101  enum MetaData {
135  };
136 
142  enum State
143  {
173  };
174 
188  enum Category
189  {
226  };
227 
233  enum ErrorType {
238  NoError = 0,
249  };
250 
256 
257  // TODO: naming
258  /*enum MediaStreamType {
259  Audio = 1,
260  Video = 2,
261  StillImage = 4,
262  Subtitle = 8,
263  AllMedia = 0xFFFFFFFF
264  };
265  Q_DECLARE_FLAGS(MediaStreamTypes, MediaStreamType)*/
266 } // namespace Phonon
267 //Q_DECLARE_OPERATORS_FOR_FLAGS(Phonon::MediaStreamTypes)
268 
270 
271 //X class kdbgstream;
272 //X #include <kdebug.h>
273 //X /**
274 //X * Implements needed operator to use Phonon::State with kDebug
275 //X */
276 //X inline PHONON_EXPORT kdbgstream &operator<<(kdbgstream & stream, const Phonon::State state)
277 //X {
278 //X switch(state)
279 //X {
280 //X case Phonon::ErrorState:
281 //X stream << "ErrorState";
282 //X break;
283 //X case Phonon::LoadingState:
284 //X stream << "LoadingState";
285 //X break;
286 //X case Phonon::StoppedState:
287 //X stream << "StoppedState";
288 //X break;
289 //X case Phonon::PlayingState:
290 //X stream << "PlayingState";
291 //X break;
292 //X case Phonon::BufferingState:
293 //X stream << "BufferingState";
294 //X break;
295 //X case Phonon::PausedState:
296 //X stream << "PausedState";
297 //X break;
298 //X }
299 //X return stream;
300 //X }
301 
302 #include <QtCore/QMetaType>
303 
307 
309 
310 // vim: sw=4 ts=4 tw=80
311 #endif // PHONONNAMESPACE_H
The artist generally considered responsible for the work.
A short text description of the contents.
MetaData
Provided as keys for MediaObject::metaData for convenience, in addition to the strings defined in the...
#define QT_END_NAMESPACE
Definition: qglobal.h:128
#define QT_BEGIN_HEADER
Definition: qglobal.h:141
The track number of this piece if part of a specific larger collection or album.
PHONON_EXPORT QString categoryToString(Category c)
Returns a (translated) string to show to the user identifying the given Category. ...
State
The state the media producing object is in at the moment.
DiscType
Enum to identify the media discs supported by MediaObject.
Will make use of the default device.
A short text indication of music genre.
Sounds produced for accessibility (e.g.
Sound produced by a computer game should go into this category.
No disc was selected.
The Player has a valid media file loaded and is ready for playing.
The Player is waiting for data to be able to continue playing.
#define Q_DECLARE_METATYPE(TYPE)
Definition: qmetatype.h:265
The Player is playing a media file.
After construction it might take a while before the Player is ready to play().
PHONON_EXPORT const char * phononVersion()
#define QT_BEGIN_NAMESPACE
Definition: qglobal.h:127
An unrecoverable error occurred.
If the sounds produced are notifications (bing, beep and such) you should use this category...
Identifies Video CDs.
The Player is currently paused.
Category
Set's the category your program should be listed in in the mixer.
Playback should work, and trying with another URL should work.
ErrorType
Tells your program how to recover from an error.
The collection name to which this track belongs.
If your applications produces sounds from communication with somebody else (VoIP, voice chat)...
const GLubyte * c
Definition: GLee.h:5419
Date the track was recorded.
Identifies DVDs (not arbitrary data DVDs, only movie DVDs).
The KDE Multimedia classes.
If the sound is the audio channel of a video.
#define PHONON_EXPORT
Definition: phonon_export.h:38
#define QT_END_HEADER
Definition: qglobal.h:142
Identifies Audio CDs.
If your application is a music player (like a jukebox or media player playing an audio file)...
Something important does not work.
Track/Work name.