mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-20 07:49:42 +01:00
* Fixed Account for headless.
This commit is contained in:
parent
e9a1157e00
commit
b908854d59
@ -64,6 +64,8 @@ Account::~Account()
|
||||
}
|
||||
|
||||
|
||||
#ifndef ENABLE_HEADLESS
|
||||
|
||||
QWidget*
|
||||
Account::configurationWidget()
|
||||
{
|
||||
@ -84,6 +86,9 @@ Account::icon() const
|
||||
return QPixmap();
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
void
|
||||
Account::authenticate()
|
||||
{
|
||||
|
@ -82,17 +82,18 @@ public:
|
||||
/**
|
||||
* Configuration widgets can have a "dataError( bool )" signal to enable/disable the OK button in their wrapper dialogs.
|
||||
*/
|
||||
#ifndef ENABLE_HEADLESS
|
||||
virtual QWidget* configurationWidget() = 0;
|
||||
virtual QWidget* aboutWidget() { return 0; }
|
||||
virtual QWidget* aclWidget() = 0;
|
||||
virtual QPixmap icon() const = 0;
|
||||
#endif
|
||||
|
||||
virtual void saveConfig() {} // called when the widget has been edited. save values from config widget, call sync() to write to disk account generic settings
|
||||
|
||||
QVariantHash credentials() const { QMutexLocker locker( &m_mutex ); return m_credentials; }
|
||||
|
||||
QVariantMap acl() const { QMutexLocker locker( &m_mutex ); return m_acl; }
|
||||
virtual QWidget* aclWidget() = 0;
|
||||
|
||||
virtual QPixmap icon() const = 0;
|
||||
|
||||
virtual ConnectionState connectionState() const = 0;
|
||||
virtual bool isAuthenticated() const = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user