mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-19 15:29:42 +01:00
Start of private listening work
This commit is contained in:
parent
d85291ae3e
commit
edd69b30e0
@ -719,4 +719,20 @@ quint64 infosystemRequestId()
|
||||
}
|
||||
|
||||
|
||||
static PrivateListeningMode s_privateListeningMode = PublicListening;
|
||||
|
||||
PrivateListeningMode
|
||||
privateListeningMode()
|
||||
{
|
||||
return s_privateListeningMode;
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
setPrivateListeningMode( PrivateListeningMode mode )
|
||||
{
|
||||
s_privateListeningMode = mode;
|
||||
}
|
||||
|
||||
|
||||
} // ns
|
||||
|
@ -48,6 +48,13 @@ namespace TomahawkUtils
|
||||
MediaTypeTrack
|
||||
};
|
||||
|
||||
enum PrivateListeningMode
|
||||
{
|
||||
PublicListening,
|
||||
NoLogPlayback,
|
||||
FullyPrivate
|
||||
};
|
||||
|
||||
class DLLEXPORT NetworkProxyFactory : public QNetworkProxyFactory
|
||||
{
|
||||
public:
|
||||
@ -112,6 +119,9 @@ namespace TomahawkUtils
|
||||
DLLEXPORT bool removeDirectory( const QString& dir );
|
||||
|
||||
DLLEXPORT quint64 infosystemRequestId();
|
||||
|
||||
DLLEXPORT PrivateListeningMode privateListeningMode();
|
||||
DLLEXPORT void setPrivateListeningMode( PrivateListeningMode mode );
|
||||
}
|
||||
|
||||
#endif // TOMAHAWKUTILS_H
|
||||
|
Loading…
x
Reference in New Issue
Block a user