Make constructor in XMMSHandler private.
Also adds a proper destructor to the class.
This commit is contained in:
parent
98d56cf42d
commit
7b00c4c9fb
2 changed files with 5 additions and 3 deletions
|
|
@ -317,5 +317,6 @@ XMMSHandler::medialib_info (XMMSResultDict *res)
|
||||||
|
|
||||||
XMMSHandler::~XMMSHandler ()
|
XMMSHandler::~XMMSHandler ()
|
||||||
{
|
{
|
||||||
|
delete m_xmmsc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,6 @@ class XMMSHandler : public QObject, public sigc::trackable {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
static XMMSHandler *getInstance (void);
|
static XMMSHandler *getInstance (void);
|
||||||
XMMSHandler (void);
|
|
||||||
~XMMSHandler ();
|
~XMMSHandler ();
|
||||||
|
|
||||||
bool connect (const char *path);
|
bool connect (const char *path);
|
||||||
|
|
@ -69,12 +68,14 @@ class XMMSHandler : public QObject, public sigc::trackable {
|
||||||
void medialibResponse (uint, QList<QHash<QString, QString> >);
|
void medialibResponse (uint, QList<QHash<QString, QString> >);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
XMMSHandler (void);
|
||||||
|
QHash<QString, QString> PropDictToQHash (XMMSResultDict *res);
|
||||||
|
QHash<QString, QString> DictToQHash (XMMSResultDict *res);
|
||||||
|
|
||||||
XmmsQT4 *m_qt4;
|
XmmsQT4 *m_qt4;
|
||||||
XMMSClient *m_xmmsc;
|
XMMSClient *m_xmmsc;
|
||||||
static XMMSHandler *singleton;
|
static XMMSHandler *singleton;
|
||||||
int m_currentid;
|
int m_currentid;
|
||||||
QHash<QString, QString> PropDictToQHash (XMMSResultDict *res);
|
|
||||||
QHash<QString, QString> DictToQHash (XMMSResultDict *res);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue