Permalink
Browse files

namespace fix

  • Loading branch information...
1 parent e479576 commit 8aca4807ceafc973c5c14ca8cf32da9355c61c2b @RJ committed Feb 11, 2010
Showing with 8 additions and 5 deletions.
  1. +6 −5 include/qdaapd/qdaapd.h
  2. +2 −0 src/qdaapd.cpp
@@ -47,9 +47,8 @@
#include "qdaapd/taginput.h"
#include "qdaapd/registry.h"
-using namespace std;
-
-typedef QMap<QString,QString> ssmap;
+namespace QDaap
+{
class QDAAPd : public QObject
{
@@ -81,12 +80,14 @@ private slots:
};
+} // ns
+
static void mongoose_handler(struct mg_connection * conn,
const struct mg_request_info * request_info,
void *user_data)
{
- QDAAPd * httpd = (QDAAPd*)user_data;
- httpd->handleRequest(conn, request_info);
+ QDaap::QDAAPd * d = (QDaap::QDAAPd*)user_data;
+ d->handleRequest(conn, request_info);
}
View
@@ -3,6 +3,8 @@
#include <QByteArray>
#include <QTimer>
+using namespace QDaap;
+
// pro-tip: advertise your service via bonjour using this command:
// avahi-publish-service QDAAPname _daap._tcp 8080

0 comments on commit 8aca480

Please sign in to comment.