1
0
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:
Jeff Mitchell 2011-11-05 20:22:23 -04:00
parent d85291ae3e
commit edd69b30e0
2 changed files with 26 additions and 0 deletions

View File

@ -719,4 +719,20 @@ quint64 infosystemRequestId()
}
static PrivateListeningMode s_privateListeningMode = PublicListening;
PrivateListeningMode
privateListeningMode()
{
return s_privateListeningMode;
}
void
setPrivateListeningMode( PrivateListeningMode mode )
{
s_privateListeningMode = mode;
}
} // ns

View File

@ -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