quassel.git
11 years agoChange date/time formats
Manuel Nickschas [Tue, 9 Apr 2013 20:57:21 +0000 (22:57 +0200)]
Change date/time formats

As some date strings are generated core-side, and servers might have set
a different locale than connected clients, we would like to avoid localized
date strings. As Qt4 also doesn't allow to display a time zone (offset) without
also localizing the string, we convert all core-side times into UTC and display
them in ISO format.

The daychange message, however, is generated client-side and thus can be shown
according to application or system locale.
 we would like to avoid localized
dates

11 years agoBuild against Qt 4.6 again
Manuel Nickschas [Tue, 9 Apr 2013 18:30:45 +0000 (20:30 +0200)]
Build against Qt 4.6 again

Bah.

11 years agoFix missing #include
Manuel Nickschas [Tue, 9 Apr 2013 18:30:35 +0000 (20:30 +0200)]
Fix missing #include

11 years agoSimplify and fix (re)connection logic
Manuel Nickschas [Mon, 8 Apr 2013 22:08:12 +0000 (00:08 +0200)]
Simplify and fix (re)connection logic

Still a mess, but the refactor is right around the corner anyway. Now at
least Quassel should no longer reconnect automagically if disconnected
explicitly.

11 years agoFix lag display
Manuel Nickschas [Sun, 7 Apr 2013 22:22:18 +0000 (00:22 +0200)]
Fix lag display

Not sure what I was thinking in d3ce95c, but that commit
a) didn't fix compiling with Qt < 4.7
b) confused local time and UTC, which
c) completely bugged lag display.

Should be working now.

11 years agoFix building with Qt 4.7
Manuel Nickschas [Sun, 7 Apr 2013 21:40:57 +0000 (23:40 +0200)]
Fix building with Qt 4.7

For reasons unknown, qPrintable() doesn't work with QByteArray in Qt versions
prior to 4.8 (the confusing thing is why it works now, in fact). In any case,
it probably makes sense to print a binary blob using normal QDebug output for
QByteArrays anyway, rather than trying to convert it to a string.

11 years agoBuild against Qt 4.7 again
Manuel Nickschas [Wed, 27 Mar 2013 23:31:56 +0000 (00:31 +0100)]
Build against Qt 4.7 again

Thx Tucos for the patch.

11 years agoMerge pull request #12 from dmeltzer/master
Manuel Nickschas [Thu, 7 Mar 2013 22:51:29 +0000 (14:51 -0800)]
Merge pull request #12 from dmeltzer/master

Fix build on os x 10.7

11 years agoFix deprecated warnings. com.trolltech>org.qtproject 12/head
Daniel Meltzer [Thu, 7 Mar 2013 22:44:23 +0000 (17:44 -0500)]
Fix deprecated warnings.  com.trolltech>org.qtproject

11 years agoFix Build on OS X 10.7, Where notification center doesn't exist.
Daniel Meltzer [Thu, 7 Mar 2013 22:42:40 +0000 (17:42 -0500)]
Fix Build on OS X 10.7, Where notification center doesn't exist.

11 years agoFix virtual overloads
Manuel Nickschas [Wed, 6 Mar 2013 23:52:06 +0000 (00:52 +0100)]
Fix virtual overloads

So I learned something today: the 'using' keyword can also be used to
import function names from the enclosing namespace. This not only
solves the spammy virtual overload warnings that the new-fangled protocol
stuff introduced unwittingly, but also removes the need to redefine
RemotePeer::handle<>() as a forward to Peer::handle<>().

Also, someone please kick the C++ inventors for making method lookup
not follow the Koenig rules (contrary to most other lookups...).

11 years agoFix CMake build types and compiler flags
Manuel Nickschas [Wed, 6 Mar 2013 23:41:54 +0000 (00:41 +0100)]
Fix CMake build types and compiler flags

Turns out there were various typos in this that noone ever noticed,
most notably leading to QT_NO_DEBUG not being defined in RelWithDebInfo
builds. We're now also defaulting to RelWithDebInfo for Win32; please
let me know if that still causes problems.

While I was at it, I also added CMAKE_BUILD_TYPE=Profile, and pimped the
compiler warnings in general. In particular, -Woverloaded-virtual seems
rather useful with all the template trickery we're introducing lately.

11 years agoBump version.inc for release 0.9-beta1
Manuel Nickschas [Wed, 6 Mar 2013 19:54:18 +0000 (20:54 +0100)]
Bump version.inc for release

11 years agoMake sure target for displayMsg is not null
Bas Pape [Sat, 23 Feb 2013 18:35:28 +0000 (19:35 +0100)]
Make sure target for displayMsg is not null

In the key related functions bufferInfo.bufferName() was used, but this
returns a null QString, which causes a segfault when processed later on,
so replace them with emtpy strings.

11 years agoDon't crash if no audio file for Phonon is set
Manuel Nickschas [Wed, 6 Mar 2013 19:41:53 +0000 (20:41 +0100)]
Don't crash if no audio file for Phonon is set

11 years agoAdd notification backend to support DockManagers
Bas Pape [Thu, 14 Feb 2013 21:55:43 +0000 (22:55 +0100)]
Add notification backend to support DockManagers

DockManager is a DBus API that does fancy icons. Current support
includes progress reporting whilst connecting, requesting attention
when highlighted and showing pending highlight count in a label. Exact
support also depends on the dock.

11 years agoSet minimum (the special value) timeout to 0
Bas Pape [Tue, 12 Feb 2013 18:38:05 +0000 (19:38 +0100)]
Set minimum (the special value) timeout to 0

Fixes #1201

11 years agoFix duplication/dropping of messages in certain instances.
Jason Lynch [Tue, 5 Feb 2013 14:48:37 +0000 (08:48 -0600)]
Fix duplication/dropping of messages in certain instances.

When multiple messages are processed at once, if one of the messages is flagged
for redirection, the wrong array is accessed, potentially causing the redirected
message to be dropped and another message to be duplicated.

11 years agoOptionally start minimized to tray
Bas Pape [Wed, 20 Jun 2012 22:19:33 +0000 (00:19 +0200)]
Optionally start minimized to tray

Restores mimized to tray if it was closed as such and adds an option to
force starting mimized to tray (if a tray is available). Fixed #1133

11 years agoRelicense SystemTray and LegacySystemTray under LGPL 2+
Manuel Nickschas [Thu, 28 Feb 2013 19:34:52 +0000 (20:34 +0100)]
Relicense SystemTray and LegacySystemTray under LGPL 2+

This was requested so that it could be made useful together with
StatusNotifierItem (which came from KDE and already is LGPL'd).

Here's hoping that it will result in a neat little library that programs
can use to have a systemtray icon that sucks less than the stock one.

This code was written by yours truly.

11 years agosuperfluous_includes--
Manuel Nickschas [Wed, 20 Feb 2013 23:02:39 +0000 (00:02 +0100)]
superfluous_includes--

11 years agoMutate SignalProxy::AbstractPeer into a separate class Peer
Manuel Nickschas [Wed, 20 Feb 2013 22:52:15 +0000 (23:52 +0100)]
Mutate SignalProxy::AbstractPeer into a separate class Peer

It makes no sense anymore to have this a nested class inside SignalProxy
anymore.
Also, this streamlines the template handling a bit; we don't need to duplicate
the handle() message between RemotePeer and InternalPeer.

11 years agoUnused--
Manuel Nickschas [Wed, 20 Feb 2013 21:30:30 +0000 (22:30 +0100)]
Unused--

11 years agoTrim the last parameter except for PRIVMSG and NOTICE
Manuel Nickschas [Wed, 20 Feb 2013 19:31:54 +0000 (20:31 +0100)]
Trim the last parameter except for PRIVMSG and NOTICE

Just to be sure that we won't encounter any more side-effects with
ircds sending random trailing whitespace, let's trim the last parameter
except for PRIVMSG and NOTICE.

11 years agoHandle NAMREPLY with trailing whitespace
Manuel Nickschas [Wed, 20 Feb 2013 19:17:21 +0000 (20:17 +0100)]
Handle NAMREPLY with trailing whitespace

UnrealIRC sends trailing spaces with its NAMREPLY, which leads to empty nicks
being generated.

11 years agoUse lowercase headers for Phonon
Manuel Nickschas [Wed, 20 Feb 2013 18:20:37 +0000 (19:20 +0100)]
Use lowercase headers for Phonon

The CamelCase headers don't seem to exist on all platforms.

11 years agoSet key and cert for the temp identity manually
Bas Pape [Wed, 10 Oct 2012 20:53:51 +0000 (22:53 +0200)]
Set key and cert for the temp identity manually

Normally these are synced, but in this case they need to be set manually
for hasChanged to work.

Fixes #1032

11 years agoMerge pull request #7 from Tucos/bug-640
Manuel Nickschas [Tue, 19 Feb 2013 22:34:28 +0000 (14:34 -0800)]
Merge pull request #7 from Tucos/bug-640

Add codec blacklist for UTF-8 detection

11 years agoMerge pull request #6 from Tucos/genversion
Manuel Nickschas [Tue, 19 Feb 2013 22:33:19 +0000 (14:33 -0800)]
Merge pull request #6 from Tucos/genversion

Use QCoreApplication::arguments() for genversion

11 years agoMerge pull request #1 from sandsmark/master
Manuel Nickschas [Tue, 19 Feb 2013 22:29:33 +0000 (14:29 -0800)]
Merge pull request #1 from sandsmark/master

Support for * as a mode target

11 years agoMerge pull request #5 from Tucos/feat-keyx
Manuel Nickschas [Tue, 19 Feb 2013 22:27:25 +0000 (14:27 -0800)]
Merge pull request #5 from Tucos/feat-keyx

Add support for key exchange

11 years agofix the misplaced & in the private stuff as well 1/head
martin sandsmark [Tue, 19 Feb 2013 22:25:34 +0000 (23:25 +0100)]
fix the misplaced & in the private stuff as well

11 years agofix the last misplaced &
martin sandsmark [Tue, 19 Feb 2013 22:24:47 +0000 (23:24 +0100)]
fix the last misplaced &

11 years agoconsistency++
martin sandsmark [Tue, 19 Feb 2013 22:23:21 +0000 (23:23 +0100)]
consistency++

11 years agoMerge pull request #2 from sandsmark/wii
Manuel Nickschas [Tue, 19 Feb 2013 22:15:42 +0000 (14:15 -0800)]
Merge pull request #2 from sandsmark/wii

Add irssi's 'wii' as a default alias

11 years agoEnable smooth fonts on retina macs
Leo Franchi [Tue, 5 Feb 2013 14:44:38 +0000 (09:44 -0500)]
Enable smooth fonts on retina macs

11 years agoLet quassel honour locale language settings
Bas Pape [Fri, 23 Nov 2012 18:01:35 +0000 (19:01 +0100)]
Let quassel honour locale language settings

When the language setting (LC_MESSAGES) differs from the global locale
set, quassel will use the wrong language. Qt 4.8 introduces some changes
to QLocale which make this pretty much Just Work; this patch copies the
necessary bits for older Qts.

Fixes #1194

11 years agoShow OS X notification center notifications
David Sansome [Fri, 23 Nov 2012 14:12:35 +0000 (01:12 +1100)]
Show OS X notification center notifications

11 years agoDon't display control characters
Bas Pape [Thu, 11 Oct 2012 19:37:13 +0000 (21:37 +0200)]
Don't display control characters

Replace them with their respective unicode char from the control picture
block.

11 years agoCheck if user setting pair exists before inserting/updating it.
Felix Geyer [Tue, 9 Oct 2012 16:47:01 +0000 (18:47 +0200)]
Check if user setting pair exists before inserting/updating it.

If it exists it's inserted else the date is updated.
This fixes a (harmless) error that clutters the postgres log.
Fixes #958

11 years agoFormatting fixes
Manuel Nickschas [Tue, 19 Feb 2013 21:27:45 +0000 (22:27 +0100)]
Formatting fixes

11 years agoIf phonon backend is not available use as fallback the system bell
Sebastien Fricker [Thu, 4 Oct 2012 11:19:26 +0000 (13:19 +0200)]
If phonon backend is not available use as fallback the system bell

11 years agoIf phonon is not availaible: disable the audio settings
Sebastien Fricker [Thu, 13 Sep 2012 15:20:26 +0000 (17:20 +0200)]
If phonon is not availaible: disable the audio settings

11 years agoName labels a bit nicer
Manuel Nickschas [Tue, 19 Feb 2013 21:10:05 +0000 (22:10 +0100)]
Name labels a bit nicer

11 years agoAdd support for SASL EXTERNAL
Bas Pape [Thu, 30 Aug 2012 11:58:24 +0000 (13:58 +0200)]
Add support for SASL EXTERNAL

This is a method to identify to nickserv during connection registration,
like SASL PLAIN, but using the fingerprint of the certificate. Currently
the method used is chosen based on the mere presence of a certificate.
SASL PLAIN is not used as fallback (either this works or the certificate
is used as normal, with the race condition).

11 years agoOnly escape \ with standards-compliant ctcp
Bas Pape [Wed, 26 Sep 2012 08:56:50 +0000 (10:56 +0200)]
Only escape \ with standards-compliant ctcp

Fixes #1142

11 years agoSimplify CTCP parsing by default
Bas Pape [Tue, 25 Sep 2012 18:57:14 +0000 (20:57 +0200)]
Simplify CTCP parsing by default

Rather than adhering to the CTCP 'specification', reply only to single
CTCP messages without text around them. All messages not fitting the
requirements are simply displayed in the buffer. The old behaviour can
still be enabled in the settings dialog.

Fixes #1130

11 years agoFix issue with "Topic set" message
Manuel Nickschas [Tue, 19 Feb 2013 20:40:40 +0000 (21:40 +0100)]
Fix issue with "Topic set" message

Yeah, those parens can be confusing.

11 years agoFix SASL auth with Freenode
Manuel Nickschas [Tue, 19 Feb 2013 20:29:02 +0000 (21:29 +0100)]
Fix SASL auth with Freenode

Looks like Freenode adds a trailing space to its CAP ACK reply, so Quassel
would hang after we don't trim incoming messages anymore.

I don't particularly like the startsWith() workaround, but I guess we'll need
a more capable parser anyway, should we support more caps in the future...

11 years agoRename Internal-, Remote- and LegacyConnection to -Peer
Manuel Nickschas [Mon, 18 Feb 2013 22:48:00 +0000 (23:48 +0100)]
Rename Internal-, Remote- and LegacyConnection to -Peer

While I'm not tooo happy with the word "Peer", I couldn't think of another one
that fits their purpose better. "Connection" was certainly less correct, and
we have so many different connections in the codebase that it got way too confusing.

At least, while Peer might not be a perfect match, it is consistent with how we always
called that in Quassel (and they still inherit from SignalProxy::AbstractPeer and have
been doing so for years!).

11 years agoBump CMake version
Manuel Nickschas [Wed, 6 Feb 2013 19:05:32 +0000 (20:05 +0100)]
Bump CMake version

If I recall correctly, Tucos had figured out that we need 2.8.1 now.

11 years agoAdd codec blacklist for UTF-8 detection 7/head
Bas Pape [Sun, 3 Feb 2013 13:49:47 +0000 (14:49 +0100)]
Add codec blacklist for UTF-8 detection

ISO-2022-JP is valid UTF-8, which means this codec needs to bypass the
auto-detection.

11 years agoUse QCoreApplication::arguments() for genversion 6/head
Bas Pape [Fri, 1 Feb 2013 15:31:51 +0000 (16:31 +0100)]
Use QCoreApplication::arguments() for genversion

This prevents issues with locales and unicode paths.
Fixes #1177

11 years agoAdd support for DH1080 key exchange 5/head
Bas Pape [Thu, 31 Jan 2013 18:13:12 +0000 (19:13 +0100)]
Add support for DH1080 key exchange

Adds a KeyEvent and handlers, as well as a command (keyx) to initiate
and act upon a key exchange.

11 years agoRefactor Cipher related things.
Bas Pape [Thu, 31 Jan 2013 17:46:17 +0000 (18:46 +0100)]
Refactor Cipher related things.

Instead of using a hash with set keys, set the key on the relevant
  CoreIrc{User,Channel}'s cipher member.
Let the cipher clear its own key (with appropriate checks elsewhere)
Instantiate a new IrcUser when necessary (a query with someone who does
  not share any channels with us means there is no IrcUser for the target
  until he says something)

11 years agoYearly bump
Manuel Nickschas [Sun, 27 Jan 2013 21:55:21 +0000 (22:55 +0100)]
Yearly bump

It's 2013, baby!

11 years agoAllow compilation against Qt < 4.7 again
Manuel Nickschas [Sun, 27 Jan 2013 21:35:33 +0000 (22:35 +0100)]
Allow compilation against Qt < 4.7 again

Looks like I recently introduced the use of some QDateTime stuff that appeared
in Qt 4.7. Let's use the old way of calculating the lag then if built against older
Qt...

Oh, also this fixes that we would show double the lag.

11 years agoConsolidate protocol messages in one namespace
Manuel Nickschas [Sat, 26 Jan 2013 18:57:34 +0000 (19:57 +0100)]
Consolidate protocol messages in one namespace

Rather than defining the various messages as nested classes in SignalProxy,
RemoteConnection and in the future even more locations, have them defined
within a single namespace (and file, protocol.h).
This should make it much easier to see at a glance what kind of messages
Quassel sends, and thus help with protocol implementations.

11 years agoRefactor SignalProxy, network and protocol code
Manuel Nickschas [Thu, 17 Jan 2013 22:31:34 +0000 (23:31 +0100)]
Refactor SignalProxy, network and protocol code

Until now, SignalProxy also contained the protocol implementation and
handled the network data transfer. Besides being an architectural nightmare,
this also made it impossible to work on a new protocol.

As a nice sideeffect, the code size of SignalProxy shrunk by more than 30%.

This commit does the following:

* Provide a common abstraction for internal (mono) and remote connections,
  so we can remove the special casing for mono clients in the SignalProxy.
  This should also make it easier to bring back remote capabilities to the mono
  client in the future.

* Move the networking code into RemoteConnection, which also acts as an abstraction
  layer for the current and future core/client protocols.

* Move the protocol-specific code into LegacyConnection.

* Introduce explicit protocol message types (as opposed to QVariantMaps). This gives
  us type safety and allows for a cleaner and more efficient handling inside SignalProxy.
  Also, I finally got to use templates \o/

Note that the handshake/auth code still needs to be abstracted, so for now the
LegacyConnection is still used directly in (the awkwardly mis-named) CoreConnection
and Core for reading/writing their data during the init phase.

11 years agoMove inline keywords to the definitions
Manuel Nickschas [Thu, 17 Jan 2013 22:00:07 +0000 (23:00 +0100)]
Move inline keywords to the definitions

Makes the header a bit cleaner.

11 years agoRemove unused enum
Manuel Nickschas [Sat, 1 Sep 2012 21:53:12 +0000 (23:53 +0200)]
Remove unused enum

11 years agoconsistency++
Martin T. H. Sandsmark [Wed, 2 Jan 2013 23:01:27 +0000 (00:01 +0100)]
consistency++

11 years agoadd irssi's wii as a default alias 2/head
Martin T. H. Sandsmark [Wed, 26 Dec 2012 21:35:03 +0000 (22:35 +0100)]
add irssi's wii as a default alias

11 years agosupport '*' as a target for modes
Martin T. H. Sandsmark [Wed, 26 Dec 2012 20:51:53 +0000 (21:51 +0100)]
support '*' as a target for modes

11 years agorefactor out mode-applying into a separate method
Martin T. H. Sandsmark [Wed, 26 Dec 2012 20:46:59 +0000 (21:46 +0100)]
refactor out mode-applying into a separate method

11 years agoadd support for oping a whole channel with /op *
Martin T. H. Sandsmark [Tue, 24 Apr 2012 00:53:38 +0000 (02:53 +0200)]
add support for oping a whole channel with /op *

11 years agoStrip newlines from 'reason' fields in settings
Bas Pape [Tue, 25 Sep 2012 06:05:14 +0000 (08:05 +0200)]
Strip newlines from 'reason' fields in settings

These messages are sent to the server verbatim, which means anything
after a newline (which can be pasted into a QLineEdit) would be used as
a command.

11 years agoParse wallops (fixes Bug #1185)
Gryllida A [Wed, 12 Sep 2012 02:54:11 +0000 (12:24 +0930)]
Parse wallops (fixes Bug #1185)

11 years agoOnly chop \r\n instead of trimming all whitespace
Bas Pape [Tue, 4 Dec 2012 19:06:57 +0000 (20:06 +0100)]
Only chop \r\n instead of trimming all whitespace

Any whitespace in front of the protocol's \r\n is part of the message
and thus should not be trimmed. Fixes #1197

11 years agoDisplay timestamps using the application locale
Daniel Albers [Mon, 10 Dec 2012 14:33:52 +0000 (15:33 +0100)]
Display timestamps using the application locale

Reverts configuration of timestamp formats via translation files.
Formatting of timestamps and such should completely move from core to client at
some point.
Fixes #1199

11 years agoBetter time formatting by using an explicit format
Lasse Liehu [Tue, 11 Sep 2012 21:43:05 +0000 (00:43 +0300)]
Better time formatting by using an explicit format

The default format QDateTime::toString uses isn't very good
Also make it possible for translators to change the format

11 years agodrop broken Australian translation
Daniel Albers [Thu, 23 Aug 2012 14:03:25 +0000 (16:03 +0200)]
drop broken Australian translation

11 years agoUpdate translations from Transifex
Daniel Albers [Thu, 23 Aug 2012 13:59:47 +0000 (15:59 +0200)]
Update translations from Transifex

Many thanks to:
 - cs: Tomáš Chvátal <tomas.chvatal@gmail.com>
 - cs: Vit Pelcak <vit@pelcak.org>
 - da: Per Nielsen
 - el: differentreality <differentreality@gmail.com>
 - el: Theofilos Intzoglou <int.teo@gmail.com>
 - fi: Jiri Grönroos <jiri.gronroos@iki.fi>
 - fi: Larso <larso@gmx.com>
 - fr: Dorian <munto@free.fr>
 - gl: Condex <elgomaisa@gmail.com>
 - ko: Tae-Hoon KWON <zerolaunch@naver.com>
 - nl: simonphilips <simon.philips@gmail.com>
 - pl: derpella <matwa@poczta.pl>
 - ru: sfionov <fionov@gmail.com>
 - uk: Yuri Chornoivan <yurchor@ukr.net>

11 years agoFixes #1175
Marcus Eggenberger [Sat, 7 Jul 2012 10:06:08 +0000 (12:06 +0200)]
Fixes #1175

11 years agoUpdated cmake files for Mac OS X 10.6 build
Marcus Eggenberger [Sat, 7 Jul 2012 09:58:41 +0000 (11:58 +0200)]
Updated cmake files for Mac OS X 10.6 build

11 years agoFix buildsys to work without DBus
Manuel Nickschas [Sat, 7 Jul 2012 10:34:45 +0000 (12:34 +0200)]
Fix buildsys to work without DBus

11 years agopull-from-transifex.sh: pull newly added languages as well
Daniel Albers [Tue, 10 Apr 2012 19:21:17 +0000 (21:21 +0200)]
pull-from-transifex.sh: pull newly added languages as well

new file:   scripts/tx-sync.sh

11 years agosilence po/pull-from-transifex.sh
Daniel Albers [Mon, 26 Mar 2012 08:44:18 +0000 (10:44 +0200)]
silence po/pull-from-transifex.sh

11 years agoUpdate translations from Transifex
Daniel Albers [Wed, 15 Feb 2012 04:01:01 +0000 (05:01 +0100)]
Update translations from Transifex

- Add Polish and Korean translations
- Update quassel.pot (5 new messages)

Many thanks to:
 - cs: Tomáš Chvátal <tomas.chvatal@gmail.com>
 - da: Per Nielsen
 - el: differentreality <differentreality@gmail.com>, Theofilos Intzoglou <int.teo@gmail.com>
 - fr: Dorian <munto@free.fr>
 - gl: Condex <elgomaisa@gmail.com>
 - ko: Tae-Hoon KWON <zerolaunch@naver.com>
 - nl: simonphilips <simon.philips@gmail.com>
 - pl: derpella <matwa@poczta.pl>
 - ru: sfionov <fionov@gmail.com>
 - uk: Yuri Chornoivan <yurchor@ukr.net>

11 years agoadd source file type to Transifex config
Daniel Albers [Tue, 14 Feb 2012 22:52:36 +0000 (23:52 +0100)]
add source file type to Transifex config

11 years agoFix ALL the license headers!
Manuel Nickschas [Fri, 25 May 2012 15:32:38 +0000 (17:32 +0200)]
Fix ALL the license headers!

Many of our license headers had the wrong date, some of them inconsistent formatting,
all of them the wrong address for the FSF (which apparently moved since 2005), and
also neither the GNU Blank Public License nor the GNU Highlight Public License actually
exist.

11 years agoReformat ALL the source!
Manuel Nickschas [Fri, 25 May 2012 14:05:34 +0000 (16:05 +0200)]
Reformat ALL the source!

Yes, yes. After stubborningly refusing to switch to a more readable coding style for
years, I finally give in. Our old, quite compact, 2-indent style was born from my time
with homecomputers, where every whitespace was a waste. Later (and mostly thanks to EgS),
I did see the light, e.g. changed from one-letter variable names to useful ones, but
still shied away from reformatting the whole source, touching every line, destroying the
historical context as shown by svn and git blame.

However, since I'm now doing Qt-related programming as my day job, and use a proper
(Qt-like) coding style there, it has become increasingly annoying for myself to switch to
another style in those long hacking nights working on Quassel, and so I decided to
Just Do It™. Helps that Git nowadays can ignore whitespace changes when blaming, or
diffing, or patching, so this shouldn't be too much of an annoyance for existing patches.
Feedback from the community was also positive...

So now we use a style that should be pretty close to the Qt Coding Style [1], which not
only covers the indentation, but also things like newline-after-function-head.

Reformatting was done automagically using uncrustify [2], a script and config file is in
scripts/manage/. Please don't run it over the whole codebase again, as there are some
false positives and weird formattings that will have to be manually fixed over time.
You can use it for reformatting existing patches or MRs, though.

[1] http://qt-project.org/wiki/Qt_Coding_Style
[2] http://uncrustify.sourceforge.net/

11 years agoAllow the core to use expired certificates.
Felix Geyer [Tue, 27 Sep 2011 14:02:22 +0000 (16:02 +0200)]
Allow the core to use expired certificates.

The core should only display a warning but not ignore the certificate
if it's expired.
This is especially useful for self-signed certificates.

11 years agoSupport intermediate CA certificates.
Felix Geyer [Tue, 27 Sep 2011 13:49:04 +0000 (15:49 +0200)]
Support intermediate CA certificates.

The server needs to send the intermediate CA certs if the client only
has the root CA in his trusted cert pool.

The .pem cert file needs to look like this:
[key], [server cert], [intermediate CAs], [root CA]

11 years agoresolve #1145 (parse 330 in /whowas)
Gryllida A [Mon, 12 Mar 2012 11:38:45 +0000 (22:08 +1030)]
resolve #1145 (parse 330 in /whowas)

11 years agoChan -> Channel, it's just nicer in user-visible strings
Manuel Nickschas [Tue, 22 May 2012 19:12:57 +0000 (21:12 +0200)]
Chan -> Channel, it's just nicer in user-visible strings

Though that doesn't save us from the fact that the highlight edit thingy
needs a serious revamp, it's utterly fugly.

11 years agoUse QString::isEmpty() instead of size() comparsion
salnx [Tue, 9 Jun 2009 20:43:33 +0000 (00:43 +0400)]
Use QString::isEmpty() instead of size() comparsion

Signed-off-by: Bas Pape <baspape@gmail.com>
11 years agoMake Highlight table select newly added rule
salnx [Tue, 9 Jun 2009 19:54:55 +0000 (23:54 +0400)]
Make Highlight table select newly added rule

This also slightly improves usability if table contains many rows so user don't have to scroll down manually when adding rule.

Signed-off-by: Bas Pape <baspape@gmail.com>
11 years agoChange Hilight config dialog layout a bit
salnx [Tue, 9 Jun 2009 11:10:03 +0000 (15:10 +0400)]
Change Hilight config dialog layout a bit

Signed-off-by: Bas Pape <baspape@gmail.com>
11 years agoInitial Channel specific highlights feature implementation
salnx [Mon, 8 Jun 2009 12:07:55 +0000 (16:07 +0400)]
Initial Channel specific highlights feature implementation

Signed-off-by: Bas Pape <baspape@gmail.com>
11 years agoAdd halfop support
Sebastian Goth [Fri, 17 Feb 2012 00:07:24 +0000 (01:07 +0100)]
Add halfop support

Provides /HALFOP, /DEHALFOP and context menus.
Reuses "voiced" icons.

Fixes #1138

11 years agoRemove bundled FindPackageHandleStandardArgs.cmake
Manuel Nickschas [Tue, 22 May 2012 15:57:24 +0000 (17:57 +0200)]
Remove bundled FindPackageHandleStandardArgs.cmake

This unnecessarily introduced a dependency to cmake-2.8.3, and we don't require
the extra features present in the bundled (KDE) version. Let's hope that CMake started
to ship this functionality sufficiently early, so we can rely on the system version.

11 years agoProvide (de)serialization for all event types
Manuel Nickschas [Mon, 21 May 2012 21:30:56 +0000 (23:30 +0200)]
Provide (de)serialization for all event types

This allows to (de)serialize events to/from QVariantMap (using only primitive
types), a prerequisite for sending events over the wire.

Use the following functions:

void EventManager::createEvent(const QVariantMap &)
QVariantMap Event::toVariantMap()

Note that there is only rudimentary plausibility checking, so for now we assume
that the QVariantMaps are created by Quassel. Before we allow these to go on the wire,
we need to make sure that this can't be tinkered with in annoying ways.

11 years agoCMake tweak so Creator sees the moc'd headers
Manuel Nickschas [Mon, 21 May 2012 21:28:04 +0000 (23:28 +0200)]
CMake tweak so Creator sees the moc'd headers

11 years agoMake the EventType meta enum and related accessors static
Manuel Nickschas [Sat, 17 Mar 2012 13:50:55 +0000 (14:50 +0100)]
Make the EventType meta enum and related accessors static

That way, we can use methods like eventTypeByName() without having an object
instance.

11 years agoadd tooltip to chatview timestamp setting
Daniel Albers [Thu, 19 Apr 2012 18:38:28 +0000 (20:38 +0200)]
add tooltip to chatview timestamp setting

12 years agoFix build error if QCA2 isn't around
Manuel Nickschas [Sun, 1 Apr 2012 23:13:30 +0000 (01:13 +0200)]
Fix build error if QCA2 isn't around

12 years agoBump inxi script to 1.7.31
Manuel Nickschas [Sun, 1 Apr 2012 22:59:43 +0000 (00:59 +0200)]
Bump inxi script to 1.7.31

12 years agoAdd QT_MIN_VERSION to the find_package call for Qt4
Manuel Nickschas [Sun, 1 Apr 2012 22:48:35 +0000 (00:48 +0200)]
Add QT_MIN_VERSION to the find_package call for Qt4

12 years agoAdd doc/README.Qt5 for some basic information
Manuel Nickschas [Sun, 1 Apr 2012 22:22:46 +0000 (00:22 +0200)]
Add doc/README.Qt5 for some basic information