mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-15 10:33:59 +02:00
Add missing metadata so that Hatchet is shown in the Diagnostics dialog
This commit is contained in:
@@ -83,6 +83,10 @@ HatchetAccount::HatchetAccount( const QString& accountId )
|
|||||||
{
|
{
|
||||||
s_instance = this;
|
s_instance = this;
|
||||||
|
|
||||||
|
setAccountServiceName( "Hatchet" );
|
||||||
|
// We're connecting peers.
|
||||||
|
setTypes( SipType );
|
||||||
|
|
||||||
QFile pemFile( ":/hatchet-account/mandella.pem" );
|
QFile pemFile( ":/hatchet-account/mandella.pem" );
|
||||||
pemFile.open( QIODevice::ReadOnly );
|
pemFile.open( QIODevice::ReadOnly );
|
||||||
tDebug( LOGVERBOSE ) << Q_FUNC_INFO << "certs/mandella.pem: " << pemFile.readAll();
|
tDebug( LOGVERBOSE ) << Q_FUNC_INFO << "certs/mandella.pem: " << pemFile.readAll();
|
||||||
@@ -133,9 +137,11 @@ HatchetAccount::authenticate()
|
|||||||
qDebug() << "Have saved credentials with auth token:" << authToken();
|
qDebug() << "Have saved credentials with auth token:" << authToken();
|
||||||
if ( sipPlugin() )
|
if ( sipPlugin() )
|
||||||
sipPlugin()->connectPlugin();
|
sipPlugin()->connectPlugin();
|
||||||
|
setAccountFriendlyName( username() );
|
||||||
}
|
}
|
||||||
else if ( !username().isEmpty() )
|
else if ( !username().isEmpty() )
|
||||||
{
|
{
|
||||||
|
setAccountFriendlyName( username() );
|
||||||
// Need to re-prompt for password, since we don't save it!
|
// Need to re-prompt for password, since we don't save it!
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -52,10 +52,7 @@ public:
|
|||||||
virtual bool isUnique() const { return true; }
|
virtual bool isUnique() const { return true; }
|
||||||
AccountTypes types() const { return AccountTypes( SipType ); }
|
AccountTypes types() const { return AccountTypes( SipType ); }
|
||||||
// virtual bool allowUserCreation() const { return false; }
|
// virtual bool allowUserCreation() const { return false; }
|
||||||
#ifndef ENABLE_HEADLESS
|
|
||||||
virtual QPixmap icon() const;
|
virtual QPixmap icon() const;
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
virtual Account* createAccount ( const QString& pluginId = QString() );
|
virtual Account* createAccount ( const QString& pluginId = QString() );
|
||||||
};
|
};
|
||||||
|
@@ -56,7 +56,7 @@ enum AccountType
|
|||||||
|
|
||||||
DLLEXPORT QString accountTypeToString( AccountType type );
|
DLLEXPORT QString accountTypeToString( AccountType type );
|
||||||
|
|
||||||
Q_DECLARE_FLAGS(AccountTypes, AccountType);
|
Q_DECLARE_FLAGS( AccountTypes, AccountType )
|
||||||
|
|
||||||
inline QString generateId( const QString& factoryId )
|
inline QString generateId( const QString& factoryId )
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user