You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
1.2 KiB
51 lines
1.2 KiB
// (C) 2005 Max Howell (max.howell@methylblue.com)
|
|
// See COPYING file for licensing information
|
|
|
|
#ifndef CODEINE_THESTREAM_H
|
|
#define CODEINE_THESTREAM_H
|
|
|
|
#include "codeineConfig.h" // needed for inline functions
|
|
#include <kurl.h> // larger :( but no macros at least
|
|
#include <tqsize.h> // small header
|
|
#include <tqstring.h> // small header
|
|
|
|
/// for purely static classes
|
|
#define CODEINE_NO_EXPORT( T ) \
|
|
T(); \
|
|
~T(); \
|
|
T( const T& ); \
|
|
T &operator=( const T& ); \
|
|
bool operator==( const T& ); \
|
|
bool operator!=( const T& );
|
|
|
|
namespace Codeine
|
|
{
|
|
class TheStream
|
|
{
|
|
CODEINE_NO_EXPORT( TheStream )
|
|
|
|
public:
|
|
static const KURL &url();
|
|
|
|
static bool canSeek();
|
|
static bool hasAudio();
|
|
static bool hasVideo();
|
|
|
|
static TQSize defaultVideoSize();
|
|
|
|
static int aspectRatio();
|
|
static int subtitleChannel();
|
|
static int audioChannel();
|
|
|
|
static TQString prettyTitle();
|
|
static TQString information();
|
|
|
|
static inline bool hasProfile()
|
|
{ return TDEGlobal::config()->hasGroup( url().prettyURL() ); }
|
|
|
|
static TDEConfig *profile();
|
|
};
|
|
}
|
|
|
|
#endif
|