mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-01 03:40:16 +02:00
Make SipPlugin reset pure virtual and implement
This commit is contained in:
@@ -94,7 +94,8 @@ public slots:
|
|||||||
// so plugins can clean up after themselves
|
// so plugins can clean up after themselves
|
||||||
virtual void deletePlugin();
|
virtual void deletePlugin();
|
||||||
|
|
||||||
virtual void reset() {}
|
//called when there is a new database
|
||||||
|
virtual void reset() = 0;
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
void error( int, const QString& );
|
void error( int, const QString& );
|
||||||
|
@@ -97,6 +97,8 @@ public slots:
|
|||||||
void refreshProxy();
|
void refreshProxy();
|
||||||
void showAddFriendDialog();
|
void showAddFriendDialog();
|
||||||
|
|
||||||
|
virtual void reset() {}
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual QString defaultSuffix() const;
|
virtual QString defaultSuffix() const;
|
||||||
|
|
||||||
|
@@ -785,6 +785,18 @@ TwitterPlugin::checkSettings()
|
|||||||
connectPlugin( false );
|
connectPlugin( false );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void
|
||||||
|
TwitterPlugin::reset()
|
||||||
|
{
|
||||||
|
qDebug() << Q_FUNC_INFO;
|
||||||
|
setTwitterCachedDirectMessagesSinceId( 0 );
|
||||||
|
setTwitterCachedFriendsSinceId( 0 );
|
||||||
|
setTwitterCachedMentionsSinceId( 0 );
|
||||||
|
setTwitterCachedPeers( QHash< QString, QVariant >() );
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
QString
|
QString
|
||||||
TwitterPlugin::twitterScreenName() const
|
TwitterPlugin::twitterScreenName() const
|
||||||
{
|
{
|
||||||
|
@@ -78,6 +78,7 @@ signals:
|
|||||||
public slots:
|
public slots:
|
||||||
virtual bool connectPlugin( bool startup );
|
virtual bool connectPlugin( bool startup );
|
||||||
void disconnectPlugin();
|
void disconnectPlugin();
|
||||||
|
virtual void reset();
|
||||||
void checkSettings();
|
void checkSettings();
|
||||||
void refreshProxy();
|
void refreshProxy();
|
||||||
void deletePlugin();
|
void deletePlugin();
|
||||||
|
@@ -67,6 +67,8 @@ public slots:
|
|||||||
virtual bool connectPlugin( bool startup );
|
virtual bool connectPlugin( bool startup );
|
||||||
void disconnectPlugin();
|
void disconnectPlugin();
|
||||||
|
|
||||||
|
virtual void reset() {}
|
||||||
|
|
||||||
void sendMsg( const QString& , const QString& ) {}
|
void sendMsg( const QString& , const QString& ) {}
|
||||||
void broadcastMsg( const QString & ) {}
|
void broadcastMsg( const QString & ) {}
|
||||||
void addContact( const QString &, const QString& ) {}
|
void addContact( const QString &, const QString& ) {}
|
||||||
|
Reference in New Issue
Block a user