Skip to content

Commit

Permalink
beta 1.6.3.050101
Browse files Browse the repository at this point in the history
  • Loading branch information
thorwe committed May 1, 2015
1 parent 6660297 commit 6631baf
Show file tree
Hide file tree
Showing 15 changed files with 772 additions and 111 deletions.
7 changes: 5 additions & 2 deletions CrossTalk.pro
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@ HEADERS += \
src/plugin_qt.h \
src/sse_server.h \
src/groupbox_ducking.h \
src/pipeserver.h
src/pipeserver.h \
src/version.h \
src/version_qt.h

SOURCES += \
src/ts_settings_qt.cpp \
Expand Down Expand Up @@ -96,7 +98,8 @@ SOURCES += \
src/plugin_qt.cpp \
src/sse_server.cpp \
src/groupbox_ducking.cpp \
src/pipeserver.cpp
src/pipeserver.cpp \
src/version_qt.cpp

FORMS += \
src/config.ui \
Expand Down
438 changes: 438 additions & 0 deletions CrossTalk.pro.user.3.3-pre1

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ Config::Config(QWidget *parent) :
// Fill with settings
QSettings cfg(TSHelpers::GetFullConfigPath(), QSettings::IniFormat);

checkBoxBeta->setChecked(cfg.value("beta",false).toBool());
checkBoxBeta->setChecked(cfg.value("beta",true).toBool());
connect(checkBoxBeta,SIGNAL(toggled(bool)),SLOT(onBetaChannelToggled(bool)));

// WebSocket Server
Expand Down
15 changes: 0 additions & 15 deletions src/mod_ducker_global.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
#include <QSettings>
#include "ts_helpers_qt.h"

//Ducker_Global* Ducker_Global::m_Instance = 0;

Ducker_Global::Ducker_Global(QObject *parent) :
m_isActive(false),
m_value(0.0f),
Expand All @@ -29,10 +27,6 @@ float Ducker_Global::getValue() const
return m_value;
}

//Ducker_Global::~Ducker_Global()
//{
//}

void Ducker_Global::setActive(bool value)
{
if (value == m_isActive)
Expand Down Expand Up @@ -64,15 +58,6 @@ bool Ducker_Global::onInfoDataChanged(uint64 serverConnectionHandlerID, uint64 i
return isDirty;
}

//void Ducker_Global::saveSettings()
//{
// QSettings cfg(TSHelpers::GetFullConfigPath(), QSettings::IniFormat);
// cfg.beginGroup("ducker_global");
// cfg.setValue("enabled",isEnabled());
// cfg.setValue("value",getValue());
// cfg.endGroup();
//}

void Ducker_Global::onContextMenuEvent(uint64 serverConnectionHandlerID, PluginMenuType type, int menuItemID, uint64 selectedItemID)
{
Q_UNUSED(type);
Expand Down
29 changes: 1 addition & 28 deletions src/mod_ducker_global.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,32 +25,11 @@ class Ducker_Global : public Module, public InfoDataInterface, public ContextMen

public:
explicit Ducker_Global(QObject *parent = 0);
// static Ducker_Global* instance() {
// static QMutex mutex;
// if(!m_Instance) {
// mutex.lock();

// if(!m_Instance)
// m_Instance = new Ducker_Global;

// mutex.unlock();
// }
// return m_Instance;
// }

// static void drop() {
// static QMutex mutex;
// mutex.lock();
// delete m_Instance;
// m_Instance = 0;
// mutex.unlock();
// }

float getValue() const;

void AddMusicBot(uint64 serverConnectionHandlerID, anyID clientID);
// void AddMusicBot(QString uid);
void RemoveMusicBot(uint64 serverConnectionHandlerID, anyID clientID);
// void RemoveMusicBot(QString uid);
void ToggleMusicBot(uint64 serverConnectionHandlerID, anyID clientID);

// events forwarded from plugin.cpp
Expand Down Expand Up @@ -81,12 +60,6 @@ public slots:
void onRunningStateChanged(bool value);

private:
// explicit Ducker_Global();
// ~Ducker_Global();
// static Ducker_Global* m_Instance;
// Ducker_Global(const Ducker_Global &);
// Ducker_Global& operator=(const Ducker_Global &);

bool m_isActive;

float value() {return m_value;}
Expand Down
2 changes: 2 additions & 0 deletions src/module.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ void Module::setEnabled(bool value)
onEnabledStateChanged(value);
if (running_old != isRunning())
onRunningStateChanged(isRunning());

emit enabledSet(m_enabled);
}
}
Expand All @@ -50,6 +51,7 @@ void Module::setBlocked(bool value)
onBlockedStateChanged(value);
if (running_old != isRunning())
onRunningStateChanged(isRunning());

emit blockedSet(value);
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ TSServersInfo* centralStation = TSServersInfo::instance();
const char* ts3plugin_name() { return "CrossTalk"; }

/* Plugin version */
const char* ts3plugin_version() { return "1.6.3"; }
const char* ts3plugin_version() { return "1.6.3.050101"; }

/* Plugin API version. Must be the same as the clients API major version, else the plugin fails to load. */
int ts3plugin_apiVersion() { return PLUGIN_API_VERSION; }
Expand Down Expand Up @@ -279,7 +279,7 @@ int ts3plugin_init() {
}

QSettings cfg(TSHelpers::GetFullConfigPath(), QSettings::IniFormat);
updater.CheckUpdate(cfg.value("beta",false).toBool());
updater.CheckUpdate(cfg.value("beta",true).toBool());

TSLogging::Log("init done");
return 0; /* 0 = success, 1 = failure */
Expand Down
14 changes: 7 additions & 7 deletions src/positional_audio/groupbox_positionalaudio_servers.ui
Original file line number Diff line number Diff line change
Expand Up @@ -76,16 +76,16 @@
<string notr="true"> sec</string>
</property>
<property name="decimals">
<number>1</number>
<number>2</number>
</property>
<property name="minimum">
<double>0.100000000000000</double>
<double>0.020000000000000</double>
</property>
<property name="maximum">
<double>2.000000000000000</double>
</property>
<property name="singleStep">
<double>0.100000000000000</double>
<double>0.020000000000000</double>
</property>
<property name="value">
<double>1.000000000000000</double>
Expand Down Expand Up @@ -117,19 +117,19 @@
<string notr="true"> sec</string>
</property>
<property name="decimals">
<number>1</number>
<number>2</number>
</property>
<property name="minimum">
<double>0.200000000000000</double>
<double>0.020000000000000</double>
</property>
<property name="maximum">
<double>2.000000000000000</double>
</property>
<property name="singleStep">
<double>0.100000000000000</double>
<double>0.020000000000000</double>
</property>
<property name="value">
<double>1.000000000000000</double>
<double>2.000000000000000</double>
</property>
</widget>
<widget class="QLabel" name="label_SendIntervalSilentInc">
Expand Down
1 change: 0 additions & 1 deletion src/positional_audio/guildwarstwo.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#include "guildwarstwo.h"

#include <QStringList>
#include "ts_helpers_qt.h"
#include "tsvr_obj.h"

Expand Down
2 changes: 0 additions & 2 deletions src/ts_logging_qt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,5 @@ void TSLogging::Print(QString message, uint64 serverConnectionHandlerID, LogLeve

void TSLogging::Log(QString message, uint64 serverConnectionHandlerID, LogLevel logLevel)
{
if (serverConnectionHandlerID == NULL)
serverConnectionHandlerID = 0;
ts3Functions.logMessage(message.toLocal8Bit().constData(), logLevel, ts3plugin_name(), serverConnectionHandlerID);
}
6 changes: 2 additions & 4 deletions src/ts_logging_qt.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,11 @@ namespace TSLogging
inline void Error(QString message, bool isSoundSilent) {Error(message, 0, NULL, isSoundSilent);}
inline void Error(QString message) {Error(message, 0, NULL, false);}

void Print(QString message, uint64 serverConnectionHandlerID, LogLevel logLevel);
void Print(QString message, uint64 serverConnectionHandlerID = 0, LogLevel logLevel = LogLevel_INFO);
inline void Print(QString message, LogLevel logLevel) {Print(message, 0, logLevel);}
inline void Print(QString message) {Print(message, 0, LogLevel_INFO);}

void Log(QString message, uint64 serverConnectionHandlerID, LogLevel logLevel);
void Log(QString message, uint64 serverConnectionHandlerID = 0, LogLevel logLevel = LogLevel_INFO);
inline void Log(QString message, LogLevel logLevel) {Log(message, 0, logLevel);}
inline void Log(QString message) {Log(message, 0, LogLevel_INFO);}
}

#endif // TS_LOGGING_QT_H
Loading

0 comments on commit 6631baf

Please sign in to comment.