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 ()
|
||||
{
|
||||
delete m_xmmsc;
|
||||
}
|
||||
|
||||
|
|
|
@ -12,7 +12,6 @@ class XMMSHandler : public QObject, public sigc::trackable {
|
|||
Q_OBJECT
|
||||
public:
|
||||
static XMMSHandler *getInstance (void);
|
||||
XMMSHandler (void);
|
||||
~XMMSHandler ();
|
||||
|
||||
bool connect (const char *path);
|
||||
|
@ -69,12 +68,14 @@ class XMMSHandler : public QObject, public sigc::trackable {
|
|||
void medialibResponse (uint, QList<QHash<QString, QString> >);
|
||||
|
||||
private:
|
||||
XMMSHandler (void);
|
||||
QHash<QString, QString> PropDictToQHash (XMMSResultDict *res);
|
||||
QHash<QString, QString> DictToQHash (XMMSResultDict *res);
|
||||
|
||||
XmmsQT4 *m_qt4;
|
||||
XMMSClient *m_xmmsc;
|
||||
static XMMSHandler *singleton;
|
||||
int m_currentid;
|
||||
QHash<QString, QString> PropDictToQHash (XMMSResultDict *res);
|
||||
QHash<QString, QString> DictToQHash (XMMSResultDict *res);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue