Ver Fonte

Added license text.

Mihawk há 12 anos atrás
pai
commit
d953eb0080
6 ficheiros alterados com 94 adições e 2 exclusões
  1. 21 2
      App.cpp
  2. 19 0
      App.h
  3. 19 0
      Client.cpp
  4. 19 0
      Client.h
  5. 14 0
      Settings.cpp
  6. 2 0
      Settings.h

+ 21 - 2
App.cpp

@@ -1,3 +1,22 @@
+/*
+GNU General Public License version 3 notice
+
+Copyright (C) 2012 Mihawk <luiz@netdome.biz>. All rights reserved.
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation, either version 3 of the License, or
+(at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with this program.  If not, see < http://www.gnu.org/licenses/ >.
+*/
+
 #include "App.h"
 #include "Client.h"
 #include <QStringList>
@@ -48,13 +67,13 @@ App::App(int &argc, char **argv) :
   print("CIMS Bot Service v0.101\n========================================================\n");
 
   setApplicationName("CIMSBOT");
-  setOrganizationDomain("qwbr.tk");
+  setOrganizationDomain("http://redmine.b4r.org/projects/cimsqwbot/");
   setOrganizationName("CIMS");
   setApplicationVersion("0.101");
 
   myClientsFrameTimerID = startTimer(0);
 
-  myQWNETSshClient->connectToHost("stomp", "b4r.org");
+  myQWNETSshClient->connectToHost(Settings::globalInstance()->sshUserName(), Settings::globalInstance()->sshHostName());
 
   loadServerList();
 

+ 19 - 0
App.h

@@ -1,3 +1,22 @@
+/*
+GNU General Public License version 3 notice
+
+Copyright (C) 2012 Mihawk <luiz@netdome.biz>. All rights reserved.
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation, either version 3 of the License, or
+(at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with this program.  If not, see < http://www.gnu.org/licenses/ >.
+*/
+
 #ifndef APP_H
 #define APP_H
 

+ 19 - 0
Client.cpp

@@ -1,3 +1,22 @@
+/*
+GNU General Public License version 3 notice
+
+Copyright (C) 2012 Mihawk <luiz@netdome.biz>. All rights reserved.
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation, either version 3 of the License, or
+(at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with this program.  If not, see < http://www.gnu.org/licenses/ >.
+*/
+
 #include "Client.h"
 #include <QString>
 #include <stdio.h>

+ 19 - 0
Client.h

@@ -1,3 +1,22 @@
+/*
+GNU General Public License version 3 notice
+
+Copyright (C) 2012 Mihawk <luiz@netdome.biz>. All rights reserved.
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation, either version 3 of the License, or
+(at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with this program.  If not, see < http://www.gnu.org/licenses/ >.
+*/
+
 #ifndef CLIENT_H
 #define CLIENT_H
 

+ 14 - 0
Settings.cpp

@@ -176,6 +176,18 @@ bool Settings::developerMode() const
   return ourSettings->value("developerMode", false).toBool();
 }
 
+// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+QString Settings::sshHostName() const
+{
+  return ourSettings->value("sshHostName", "b4r.org").toString();
+}
+
+// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+QString Settings::sshUserName() const
+{
+  return ourSettings->value("sshUserName", "stomp").toString();
+}
+
 // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 void Settings::save()
 {
@@ -192,6 +204,8 @@ void Settings::save()
   ourSettings->setValue("timeToSayHiAfterConnected", timeToSayHiAfterConnected());
   ourSettings->setValue("timeToWaitForCountReply", timeToWaitForCountReply());
   ourSettings->setValue("developerMode", developerMode());
+  ourSettings->setValue("sshHostName", sshHostName());
+  ourSettings->setValue("sshUserName", sshUserName());
 
   ServerList list = serverList();
   setServerList(list);

+ 2 - 0
Settings.h

@@ -81,6 +81,8 @@ public:
   int               timeToSayHiAfterConnected() const;
   int               timeToWaitForCountReply() const;
   bool              developerMode() const;
+  QString           sshUserName() const;
+  QString           sshHostName() const;
 
   /**
     Save current settings to the file.