Make constructor in XMMSHandler private.

Also adds a proper destructor to the class.
This commit is contained in:
Daniel Svensson 2006-03-10 14:36:54 +01:00
parent 98d56cf42d
commit 7b00c4c9fb
2 changed files with 5 additions and 3 deletions

View file

@ -317,5 +317,6 @@ XMMSHandler::medialib_info (XMMSResultDict *res)
XMMSHandler::~XMMSHandler ()
{
delete m_xmmsc;
}

View file

@ -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