Added qmake project files / standardized #includes

This commit is contained in:
Roland Winklmeier
2013-03-16 18:44:46 +01:00
parent 9b79949eb4
commit f6daa0623e
43 changed files with 577 additions and 61 deletions

View File

@@ -0,0 +1,64 @@
QT += network
TARGET = blackmisc
TEMPLATE = lib
CONFIG += staticlib
INCLUDEPATH += ..
DEPENDPATH += . ..
#PRECOMPILED_HEADER = stdpch.h
precompile_header:!isEmpty(PRECOMPILED_HEADER) {
DEFINES += USING_PCH
}
DEFINES += LOG_IN_FILE
HEADERS += \
logmessage.h \
log.h \
display.h \
debug.h \
context.h \
config.h \
config_manager.h \
serialize.h \
com_client.h \
com_server.h \
com_client_buffer.h \
message.h \
com_handler.h \
message_factory.h \
message_handler.h \
type_info.h \
message_dispatcher.h \
message_system.h \
gui_messages.h
SOURCES += \
logmessage.cpp \
log.cpp \
display.cpp \
debug.cpp \
context.cpp \
config.cpp \
config_manager.cpp \
serialize.cpp \
com_client.cpp \
com_server.cpp \
com_client_buffer.cpp \
message.cpp \
com_handler.cpp \
message_factory.cpp \
message_handler.cpp \
type_info.cpp \
message_dispatcher.cpp \
message_system.cpp
DESTDIR = ../../lib

View File

@@ -116,6 +116,7 @@ namespace BlackMisc
{
m_configfile = filename;
m_separator = separator;
Q_UNUSED(isRelative);
}
bool CConfig::load()
@@ -224,7 +225,7 @@ namespace BlackMisc
void CConfig::update(const QString &key, const CValue &value)
{
m_value_map[key] = value;
}
void CConfig::display()

View File

@@ -37,7 +37,7 @@ namespace BlackMisc
/// Do not call this, unless you know what you're trying to do (it kills debug)!
void destroy() {}
void changeLogDirectory(const QString &dir) {}
void changeLogDirectory(const QString &dir) { Q_UNUSED(dir); }
QString getLogDirectory();

View File

@@ -6,7 +6,7 @@
#ifndef GUI_MESSAGES_H
#define GUI_MESSAGES_H
#include <blackmisc/message.h>
#include "blackmisc/message.h"
namespace BlackMisc
{
@@ -112,4 +112,4 @@ namespace BlackMisc
};
}
#endif // GUI_MESSAGES_H
#endif // GUI_MESSAGES_H

View File

@@ -3,6 +3,10 @@
//! License, v. 2.0. If a copy of the MPL was not distributed with this
//! file, You can obtain one at http://mozilla.org/MPL/2.0/
#ifndef UNICODE
#define UNICODE
#endif
#include <QTextStream>
#include <QFileInfo>
#include <QtGlobal>
@@ -48,9 +52,9 @@ namespace BlackMisc
//! By default, we use the executables name.
if ((*m_applicationName).isEmpty())
{
char name[1024];
WCHAR name[1024];
int size = GetModuleFileName (NULL, name, 1023);
QString applicationPath = QString::fromUtf8(name,size);
QString applicationPath = QString::fromWCharArray(name,size);
(*m_applicationName) = QFileInfo ( applicationPath ).fileName();
}
#else