Browse Source

Added GPL, fixed indentation of serverobjects

Niklas Boelter 12 years ago
parent
commit
4d306b2a56
13 changed files with 104 additions and 27 deletions
  1. 9 1
      Connection.cpp
  2. 9 1
      Connection.h
  3. 11 9
      Controller.cpp
  4. 9 1
      Controller.h
  5. 9 1
      HistoryLineEdit.cpp
  6. 9 1
      HistoryLineEdit.h
  7. 9 1
      MainWindow.cpp
  8. 9 1
      MainWindow.h
  9. 1 6
      MainWindow.ui
  10. 9 1
      Numerics.h
  11. 9 1
      UserLists.cpp
  12. 9 1
      UserLists.h
  13. 2 2
      main.cpp

+ 9 - 1
Connection.cpp

@@ -3,7 +3,15 @@
  *  nirc
  *
  *  Created by Niklas Bölter on 02.02.10.
- *  Copyright 2010 Frubar Corporation. All rights reserved.
+ *  Copyright 2010 Frubar Corporation. 
+ *
+ *
+ * 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 2 of the License, or
+ * (at your option) any later version.
+ *
+ *
  *
  */
 

+ 9 - 1
Connection.h

@@ -3,7 +3,15 @@
  *  nirc
  *
  *  Created by Niklas Bölter on 02.02.10.
- *  Copyright 2010 Frubar Corporation. All rights reserved.
+ *  Copyright 2010 Frubar Corporation. 
+ *
+ *
+ * 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 2 of the License, or
+ * (at your option) any later version.
+ *
+ *
  *
  */
 

+ 11 - 9
Controller.cpp

@@ -3,7 +3,15 @@
  *  nirc
  *
  *  Created by Niklas Bölter on 03.02.10.
- *  Copyright 2010 Frubar Corporation. All rights reserved.
+ *  Copyright 2010 Frubar Corporation. 
+ *
+ *
+ * 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 2 of the License, or
+ * (at your option) any later version.
+ *
+ *
  *
  */
 
@@ -133,8 +141,7 @@ void Controller::disconnected(int cid)
 	socketmessage(cid, QString("Disconnected from %1").arg(connectionsettings.at(cid).name));
 }
 void Controller::parse(int cid, QString line)
-{	
-	qDebug() << QString("(Connection %1) %2").arg(cid).arg(line);
+{
 	QStringList params;
 	QString prefstr;
 	QString command;
@@ -206,7 +213,6 @@ void Controller::parse(int cid, QString line)
 			}
 
 		}
-		qDebug() << "Nickname:" << prefix.nickname << "Username:" << prefix.username << "Hostname:" << prefix.hostname;
 	}
 	command = command.toLower();
 	if(command.contains(QRegExp("[^a-z0-9]+"))) // I don't know enough about QMetaObject, but we better not allow arbitrary input
@@ -315,14 +321,10 @@ void Controller::tabChanged(QString identifier)
 		tab.name = identifier.mid(pos+1);
 	}
 	updateChannelList();
-	qDebug() << "TABCHANGE: identifier:" << tab.identifier;
-	qDebug() << "TABCHANGE:        cid:" << tab.cid;
-	qDebug() << "TABCHANGE:       name:" << tab.name;
 }
 void Controller::updateChannelList()
 {
 	QStringList channellist;
-	int i;
 	if(channels[tab.cid].contains(tab.name))
 	{
 		mw->setChannelList(userlists->getUsers(tab.cid, tab.name));
@@ -465,7 +467,7 @@ void Controller::handleKick(int cid, QStringList params, Prefix prefix)
 		updateChannelList();
 	}
 }
-void Controller::handle001(int cid, QStringList params, Prefix prefix)
+void Controller::handle001(int, QStringList, Prefix)
 {
 	registered.replace(cid, true);
 }

+ 9 - 1
Controller.h

@@ -3,7 +3,15 @@
  *  nirc
  *
  *  Created by Niklas Bölter on 03.02.10.
- *  Copyright 2010 Frubar Corporation. All rights reserved.
+ *  Copyright 2010 Frubar Corporation. 
+ *
+ *
+ * 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 2 of the License, or
+ * (at your option) any later version.
+ *
+ *
  *
  */
 

+ 9 - 1
HistoryLineEdit.cpp

@@ -3,7 +3,15 @@
  *  nirc
  *
  *  Created by Niklas Bölter on 03.02.10.
- *  Copyright 2010 Frubar Corporation. All rights reserved.
+ *  Copyright 2010 Frubar Corporation. 
+ *
+ *
+ * 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 2 of the License, or
+ * (at your option) any later version.
+ *
+ *
  *
  */
 

+ 9 - 1
HistoryLineEdit.h

@@ -3,7 +3,15 @@
  *  nirc
  *
  *  Created by Niklas Bölter on 03.02.10.
- *  Copyright 2010 Frubar Corporation. All rights reserved.
+ *  Copyright 2010 Frubar Corporation. 
+ *
+ *
+ * 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 2 of the License, or
+ * (at your option) any later version.
+ *
+ *
  *
  */
 

+ 9 - 1
MainWindow.cpp

@@ -3,7 +3,15 @@
  *  nirc
  *
  *  Created by Niklas Bölter on 02.02.10.
- *  Copyright 2010 Frubar Corporation. All rights reserved.
+ *  Copyright 2010 Frubar Corporation. 
+ *
+ *
+ * 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 2 of the License, or
+ * (at your option) any later version.
+ *
+ *
  *
  */
 

+ 9 - 1
MainWindow.h

@@ -3,7 +3,15 @@
  *  nirc
  *
  *  Created by Niklas Bölter on 02.02.10.
- *  Copyright 2010 Frubar Corporation. All rights reserved.
+ *  Copyright 2010 Frubar Corporation. 
+ *
+ *
+ * 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 2 of the License, or
+ * (at your option) any later version.
+ *
+ *
  *
  */
 

+ 1 - 6
MainWindow.ui

@@ -43,7 +43,7 @@
         </size>
        </property>
        <property name="indentation">
-        <number>5</number>
+        <number>10</number>
        </property>
        <property name="animated">
         <bool>true</bool>
@@ -93,11 +93,6 @@
        <attribute name="headerVisible">
         <bool>false</bool>
        </attribute>
-       <column>
-        <property name="text">
-         <string notr="true">1</string>
-        </property>
-       </column>
       </widget>
      </widget>
     </item>

+ 9 - 1
Numerics.h

@@ -3,7 +3,15 @@
  *  nirc
  *
  *  Created by Niklas Bölter on 05.02.10.
- *  Copyright 2010 Frubar Corporation. All rights reserved.
+ *  Copyright 2010 Frubar Corporation. 
+ *
+ *
+ * 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 2 of the License, or
+ * (at your option) any later version.
+ *
+ *
  *
  */
 

+ 9 - 1
UserLists.cpp

@@ -3,7 +3,15 @@
  *  nirc
  *
  *  Created by Niklas Bölter on 27.02.10.
- *  Copyright 2010 Frubar Corporation. All rights reserved.
+ *  Copyright 2010 Frubar Corporation. 
+ *
+ *
+ * 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 2 of the License, or
+ * (at your option) any later version.
+ *
+ *
  *
  */
 

+ 9 - 1
UserLists.h

@@ -3,7 +3,15 @@
  *  nirc
  *
  *  Created by Niklas Bölter on 27.02.10.
- *  Copyright 2010 Frubar Corporation. All rights reserved.
+ *  Copyright 2010 Frubar Corporation. 
+ *
+ *
+ * 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 2 of the License, or
+ * (at your option) any later version.
+ *
+ *
  *
  */
 

+ 2 - 2
main.cpp

@@ -45,8 +45,8 @@ int main(int argc, char *argv[])
 	settings.setValue("controller/maxConsoleHistory", 100);
 	settings.setValue("controller/maxChannelHistory", 100);
 	settings.setValue("controller/maxPrivateHistory", 100);
-	settings.setValue("controller/nickname", "nirci");
-	settings.setValue("controller/username", "niki");
+	settings.setValue("controller/nickname", "niki");
+	settings.setValue("controller/username", "niklas");
 	settings.setValue("controller/realname", "nIRC user");
 	settings.setValue("mainwindow/maxInputHistory", 10);
 	settings.setValue("mainwindow/inputHistoryAppendAlways", false);