Chris Smith
63edf422d5
Use ReverseFileReader from utils
Change-Id: I3e0c3adb302ee5f4584f3e9040ae6b5edfc447c8
Depends-On: I8fcf1d9e686834dfad9d93c177b97b0ea19fd742
Reviewed-on: http://gerrit.dmdirc.com/2326
Reviewed-by: Shane Mc Cormack <shane@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
12 gadus atpakaļ
Shane Mc Cormack
f40fbcff29
Update copyright for 2012
Change-Id: I559bbd9a7e6abdfc73068d4934cfb0fc9f7ce84c
Reviewed-on: http://gerrit.dmdirc.com/2289
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com >
12 gadus atpakaļ
Chris Smith
fda9c21381
Bye bye deprecations!
Change-Id: Ice72ddf69bba77d321f6037f45793b67847d71b3
Reviewed-on: http://gerrit.dmdirc.com/2284
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com >
12 gadus atpakaļ
Shane Mc Cormack
0009a08c0a
Fix for issue CLIENT-312 - Parser shouldn't extend runnable
The parser now defines some new methods:
- connect()
- connect(threadName)
- interrupt()
connect([threadName]) is responsible for creating any required threads
for the parser to run in and maintaining them internally.
interrupt() allows for interrupting these thread if they exist and if
required.
A new base class for parsers has been added to accomodate this with
minimum changes required elsewhere - ThreadedParser which BaseParser
now extends.
ThreadedParser handles the creation of a single controlThread and allows
interrupting it, and also defines an abstract void run() method (which
all existing parsers will already have from extending runnable in the
past) which is used by the controlThread.
Change-Id: I90ac61d56eb623165d3c4211f1c3247fcba823c8
Depends-On: Ib3e884407181adc362394b23fe59f8e3b401d692
Depends-On: I5ef8ea1e988fe9591df0054ad0016c409fc34b3f
Reviewed-on: http://gerrit.dmdirc.com/2257
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
12 gadus atpakaļ
Greg Holmes
2d36705587
Remove unreachable catch clause
Change-Id: Ifce7ec0490cf13fe1794aaf13acbf7fd3a8420b7
Reviewed-on: http://gerrit.dmdirc.com/2228
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
12 gadus atpakaļ
Greg Holmes
14540d9688
Begin to remove deprecated IdentityManager methods.
Change-Id: I1fc7086057871a9b5f5f6d0ec790ec28b7ee067f
Depends-On: I7c24baa6f2e64302406e656a8931390aff9d3c9d
Reviewed-on: http://gerrit.dmdirc.com/2204
Reviewed-by: Chris Smith <chris@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
12 gadus atpakaļ
Chris Smith
9c3f7ef786
Stub out group list methods
Change-Id: I8eb9a68ad651554123c7254c8357e916db57557e
Depends-On: Id47a386356c7b08883cfbe326bcf2826f0b97adf
Reviewed-on: http://gerrit.dmdirc.com/2199
Reviewed-by: Greg Holmes <greg@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
12 gadus atpakaļ
Chris Smith
a4e8b945fc
Stub proxy methods in Twitter parser
Change-Id: Ia23869ff1259e460f3389a425fc9e0e4a0a31955
Depends-On: I6a37f6955728aa732dcf0ba27bfa25749f250b3d
Reviewed-on: http://gerrit.dmdirc.com/2178
Reviewed-by: Greg Holmes <greg@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
12 gadus atpakaļ
Greg Holmes
41c77ef7ed
Move interfaces to a central location.
Depends-On: If624693f050e1aa9cf4cabcd5264518604eb8bcd
Change-Id: I862891efc407a64559788812ee039a9ec565a973
Reviewed-on: http://gerrit.dmdirc.com/2166
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Shane Mc Cormack <shane@dmdirc.com >
13 gadus atpakaļ
Chris Smith
20facb53f2
Implement composition state change method in parsers
Change-Id: Iece6afe9fba02126f203cb1aecd702bc9303b981
Depends-On: Ic893051d84bc4ab47274b2bf9c967db8ba951eea
Reviewed-on: http://gerrit.dmdirc.com/2132
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com >
13 gadus atpakaļ
Greg Holmes
ed90b0e13f
Fix fallout from plugin deprecations.
Change-Id: Ib559fda3ac9d5b65937c563b165ef078106cdd15
Depends-On: Id6cafe38cb04a9ee4513ac6e98158faf3cafc37d
Reviewed-on: http://gerrit.dmdirc.com/2099
Reviewed-by: Chris Smith <chris@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
13 gadus atpakaļ
Chris Smith
4a84877785
Import order fixes
Change-Id: I15b4e887da9c3e3987ffd8f28bcdf536f831061b
Reviewed-on: http://gerrit.dmdirc.com/2079
Reviewed-by: Greg Holmes <greg@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
13 gadus atpakaļ
Greg Holmes
85a02e5f38
Change header?
Change-Id: Id75a4947fe4c2a08460b4ee9e6e481c568d0c6d3
Reviewed-on: http://gerrit.dmdirc.com/2074
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
13 gadus atpakaļ
Greg Holmes
c0a7ed0f1f
Don't create needless empty strings
Change-Id: I74cbf6b8ae2e2c4eabaaa392258dc47a050e3ebc
Reviewed-on: http://gerrit.dmdirc.com/2058
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
13 gadus atpakaļ
Chris Smith
1ed60c75bd
Remove unused fields, params and classes
Change-Id: I83a39fe9a6284f5a9918cb0dbf02061ba0a41d9d
Reviewed-on: http://gerrit.dmdirc.com/2031
Reviewed-by: Greg Holmes <greg@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
13 gadus atpakaļ
Greg Holmes
f7f9223483
Make protocol descriptors check if a URI is secure.
Issue CLIENT-209
Change-Id: Ibf3e3a2f03270089849d9943a535e022245e0f44
Depends-On: I802cf467f0c4f41f6316ddba5451069b0bbaa0c5
Reviewed-on: http://gerrit.dmdirc.com/1999
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
13 gadus atpakaļ
Chris Smith
36fd171ca1
Expose AwayState in other parsers
Change-Id: I41638fedc08dbebdb89e8ad9f872536db5d3091f
Depends-On: Iafa0b38ea0f1f4dc39d153b9f6f8646389676ed5
Reviewed-on: http://gerrit.dmdirc.com/1982
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Shane Mc Cormack <shane@dmdirc.com >
13 gadus atpakaļ
Greg Holmes
5f035d6e76
Change Plugin to an interface and add BasePlugin abstract class.
Issue CLIENT-241
Depends-On: Ie1b3277bb1c667ee99a1b203c2ff1094616ceaff
Change-Id: If0fd1c74a19c488cb7853d69deae9f75bab43d41
Reviewed-on: http://gerrit.dmdirc.com/1923
Automatic-Compile: DMDirc Local Commits <dmdirc@googlemail.com >
Reviewed-by: Chris Smith <chris@dmdirc.com >
13 gadus atpakaļ
Chris Smith
f5fff70ef4
Fix line endings / trailing spaces
Change-Id: Id0a4aa086f7fb9bac776ec4c877aa8628175c0bc
Reviewed-on: http://gerrit.dmdirc.com/1921
Reviewed-by: Greg Holmes <greg@dmdirc.com >
Automatic-Compile: DMDirc Local Commits <dmdirc@googlemail.com >
13 gadus atpakaļ
Chris Smith
949b525c5b
Remove third party classes from source tree
Fix some broken copyright headers
Minor style fixes
Change-Id: I9326c4f957c776867e166b7031af97050e872a42
Depends-On: I6e7791c8a4f500f2a5ce1bd9069e2b464f7dde50
Reviewed-on: http://gerrit.dmdirc.com/1887
Reviewed-by: Greg Holmes <greg@dmdirc.com >
Automatic-Compile: DMDirc Local Commits <dmdirc@googlemail.com >
13 gadus atpakaļ
Chris Smith
ce075faf2f
Initial work on XMPP parser and parser base abstraction
Depends-On: I3bfbb811a5b5055d8dbe511a0390c3413d133292
Depends-On: I694d18a653ca8c3e3cad9d0e766e2fd207e615e9
Change-Id: I4ff484e8a2597017283eea557170c4aeb2029faa
Reviewed-on: http://gerrit.dmdirc.com/1852
Automatic-Compile: DMDirc Local Commits <dmdirc@googlemail.com >
Reviewed-by: Greg Holmes <greg@dmdirc.com >
13 gadus atpakaļ
Greg Holmes
118a2c0502
Remove deprecations
Depends-On: I5ebf0bd52682cd0b1798d1b1b54353e5e65e793f
Change-Id: Ic938a7785a30477f47074e574ec8311723d803a9
Reviewed-on: http://gerrit.dmdirc.com/1839
Automatic-Compile: DMDirc Local Commits <dmdirc@googlemail.com >
Reviewed-by: Chris Smith <chris@dmdirc.com >
13 gadus atpakaļ
Simon Mott
3bfe4a324b
Prevents Twitter client from checking for updates if the client is not authorized with the account.
Fixes CLIENT-147
Change-Id: I57fd93c63d11fa30b7ea2ff526e60dc111d54a7e
Reviewed-on: http://gerrit.dmdirc.com/1754
Reviewed-by: Shane Mc Cormack <shane@dmdirc.com >
Automatic-Compile: DMDirc Local Commits <dmdirc@googlemail.com >
13 gadus atpakaļ
Chris Smith
b486565a7e
Fix twitter parser showing error when trying to rejoin &twitter
Fixes CLIENT-149
Change-Id: I02748a320a68dc64a3dc1d982c6afcec187dbde2
Reviewed-on: http://gerrit.dmdirc.com/1748
Automatic-Compile: DMDirc Local Commits <dmdirc@googlemail.com >
Reviewed-by: Greg Holmes <greg@dmdirc.com >
13 gadus atpakaļ
Greg Holmes
2aff3901a3
PMD Fixes.
Change-Id: Ib0eb65bdf8a076e3a45c116aa6d493de43cf7a2d
Reviewed-on: http://gerrit.dmdirc.com/1744
Reviewed-by: Chris Smith <chris@dmdirc.com >
Automatic-Compile: DMDirc Local Commits <dmdirc@googlemail.com >
13 gadus atpakaļ
Shane Mc Cormack
e1106c80db
Update Copyright
13 gadus atpakaļ
Chris Smith
7304725388
Fix whitespace error in twitter identity file
Change-Id: I486715bd0dfdffa17dd6e7e679af1c8d143e82b4
Reviewed-on: http://gerrit.dmdirc.com/1733
Reviewed-by: Greg Holmes <greg@dmdirc.com >
Automatic-Compile: DMDirc Local Commits <dmdirc@googlemail.com >
13 gadus atpakaļ
Chris Smith
af504465f5
Plugin support for PreferencesManager rename
Change-Id: Ia126a15b60e54c08c1e780676fe363821e9b7518
Depends-On: Ied76e21fbf72039d47ec2b35b236149c13941645
Reviewed-on: http://gerrit.dmdirc.com/1592
Reviewed-by: Greg Holmes <greg@dmdirc.com >
Automatic-Compile: DMDirc Local Commits <dmdirc@googlemail.com >
13 gadus atpakaļ
Chris Smith
bb47b22b58
Style fixes
Change-Id: Ic4b352f4e88a13423babf63543553f0da1b5ece5
Reviewed-on: http://gerrit.dmdirc.com/1576
Automatic-Compile: DMDirc Local Commits <dmdirc@googlemail.com >
Reviewed-by: Greg Holmes <greg@dmdirc.com >
13 gadus atpakaļ
Chris Smith
48d6cca2a0
Misc style fixes
Change-Id: I08ec70d6f469892c62a20147a279b9d5e7dc643d
Reviewed-on: http://gerrit.dmdirc.com/1533
Automatic-Compile: Greg Holmes <greg@dmdirc.com >
Reviewed-by: Greg Holmes <greg@dmdirc.com >
13 gadus atpakaļ
Chris Smith
29cc552c8e
Twitter parser style improvements
Change-Id: I50931148fac5a4f5fd8f5fc372758f2a2fb7ca07
Reviewed-on: http://gerrit.dmdirc.com/1529
Automatic-Compile: Greg Holmes <greg@dmdirc.com >
Reviewed-by: Greg Holmes <greg@dmdirc.com >
13 gadus atpakaļ
Chris Smith
4251e58915
Style/stupidity fixes.
I'm sure I've done some of these before...
Change-Id: Ie41ffe45793e1e54403cc5501df74ad12ce680d7
Reviewed-on: http://gerrit.dmdirc.com/1379
Automatic-Compile: DMDirc Local Commits <dmdirc@googlemail.com >
Reviewed-by: Gregory Holmes <greg@dmdirc.com >
14 gadus atpakaļ
Shane Mc Cormack
534bed2d20
Lots of twitter-related changes.
Revert the worst attempt at "style fixing" I have every seen in my life, and reapply some of the non-awful ones.
Fixes issue 0004205 : twitter parser can't cope with trailing space left by the join command
Fixes issue 0004143 : Command to force twitter parser to get new tweets
(/ctcp <channel> <refresh|update>)
Fixes issue 0004119 : twitter parser renaming, leaves old client
Fixes issue 0003980 : Kicking people with twitter parser should give some kind of feedback
(/KICK Command changed from raw to non-raw which broke this)
Fixes issue 0003932 : twitter parser should auto-rejoin when parting &twitter
Fixes issue 0003809 : Typo in twitter plugin prefs: prepend *nickanmes* with @
Fixes issue 0003761 : Twitter now allows 350 api calls per hour (Soon 1500)
Fixes issue 0003760 : Option to auto-part &channels on twitter after status has been set
Change FreeDesktop Notifications plugin to use a new thread rather than blocking.
Change-Id: I4df6553024608074b2f1ab8eec99f13f7da2ad3a
Reviewed-on: http://gerrit.dmdirc.com/1338
Reviewed-by: Gregory Holmes <greg@dmdirc.com >
Automatic-Compile: DMDirc Local Commits <dmdirc@googlemail.com >
14 gadus atpakaļ
Chris Smith
430711e424
Style fixes
Change-Id: Idfb8db25bbc7d0d9ba8f7233f2fa59b4e6c44924
Reviewed-on: http://gerrit.dmdirc.com/1333
Automatic-Compile: DMDirc Local Commits <dmdirc@googlemail.com >
Reviewed-by: Gregory Holmes <greg@dmdirc.com >
14 gadus atpakaļ
Chris Smith
6b0a81a27b
Style fixes
Change-Id: I1a3166e5b4f21430b119f5a2692c8554e192aec1
Reviewed-on: http://gerrit.dmdirc.com/1329
Automatic-Compile: DMDirc Local Commits <dmdirc@googlemail.com >
Reviewed-by: Gregory Holmes <greg@dmdirc.com >
14 gadus atpakaļ
Greg Holmes
8016183432
Import order fixing
Change-Id: I96c3ad666c6a176d5289f47c02ba6a524ee34172
Reviewed-on: http://gerrit.dmdirc.com/1327
Reviewed-by: Chris Smith <chris@dmdirc.com >
Automatic-Compile: DMDirc Local Commits <dmdirc@googlemail.com >
14 gadus atpakaļ
Greg Holmes
0f73dacda6
Style fixes
Change-Id: I9b884b1b29e6d0a7ede267efdb9551591ea04003
Reviewed-on: http://gerrit.dmdirc.com/1323
Automatic-Compile: DMDirc Local Commits <dmdirc@googlemail.com >
Reviewed-by: Chris Smith <chris@dmdirc.com >
14 gadus atpakaļ
Chris Smith
d6e817728c
Initial work on Twitter searching (with hashtags)
Change-Id: Ieb45d85e606bf0a883a5c2fb56e14841f9827ab5
Reviewed-on: http://gerrit.dmdirc.com/1310
Automatic-Compile: DMDirc Local Commits <dmdirc@googlemail.com >
Reviewed-by: Shane Mc Cormack <shane@dmdirc.com >
14 gadus atpakaļ
Chris Smith
6ae61a42a9
Add new parser method to Twitter parser
Change-Id: Iadf718a759054d815f416a60dfdfb4a97a45940d
Depends-On: I0ec15591dcc33c1af55b1267d175ea3abb0178fa
Reviewed-on: http://gerrit.dmdirc.com/1292
Reviewed-by: Gregory Holmes <greg@dmdirc.com >
Automatic-Compile: Chris Smith <chris@dmdirc.com >
14 gadus atpakaļ
Greg Holmes
6c0aaff176
Add method to twitter parser
Change-Id: I5fe70a4a23c161552fd1679cce68e6453e992220
Reviewed-on: http://gerrit.dmdirc.com/1282
Automatic-Compile: Chris Smith <chris@dmdirc.com >
Reviewed-by: Chris Smith <chris@dmdirc.com >
14 gadus atpakaļ
Chris Smith
9656945b4b
Fix rogue ".".
Fixes issue 3872
Change-Id: I55159e41cb85759e2cd12bd352c6e81a6316145a
Reviewed-on: http://gerrit.dmdirc.com/1259
Reviewed-by: Gregory Holmes <greg@dmdirc.com >
Automatic-Compile: DMDirc Local Commits <dmdirc@googlemail.com >
14 gadus atpakaļ
Chris Smith
bece7966e7
Fix stupid, stupid NPE in Twitter plugin.
Fixes issue 4157
Change-Id: I156292fbd7b859ebde2e5f0428100b83ed4019e6
Reviewed-on: http://gerrit.dmdirc.com/1257
Automatic-Compile: DMDirc Local Commits <dmdirc@googlemail.com >
Reviewed-by: Gregory Holmes <greg@dmdirc.com >
14 gadus atpakaļ
Chris Smith
58940e1594
Add a connect and read timeout to the twitter API
Fixes issue 4159
Change-Id: Ibfc29f6fc110e65d917e0614b2240adff22bb18f
Reviewed-on: http://gerrit.dmdirc.com/1255
Reviewed-by: Gregory Holmes <greg@dmdirc.com >
Automatic-Compile: DMDirc Local Commits <dmdirc@googlemail.com >
14 gadus atpakaļ
Chris Smith
e3450e779b
Add twitter action components
See https://gist.github.com/328179 for example usage
Change-Id: I30658c9492a2145dcad20b33174e2d0a9ed0dbc4
Reviewed-on: http://gerrit.dmdirc.com/1223
Automatic-Compile: DMDirc Local Commits <dmdirc@googlemail.com >
Reviewed-by: Shane Mc Cormack <shane@dmdirc.com >
14 gadus atpakaļ
Chris Smith
5cf9115cfe
Twitter plugin now uses real timestamps for messages
Change-Id: I26ed65823ded1bdc0b886df5b0a0bc0c4885ff3b
Reviewed-on: http://gerrit.dmdirc.com/1210
Automatic-Compile: DMDirc Local Commits <dmdirc@googlemail.com >
Reviewed-by: Shane Mc Cormack <shane@dmdirc.com >
14 gadus atpakaļ
Chris Smith
dc79b2f3ef
Add protocol description objects to twitter/irc plugins
Change-Id: I9703a04c087940686705e7fdddb0be5dcc2a3b00
Reviewed-on: http://gerrit.dmdirc.com/1183
Reviewed-by: Gregory Holmes <greg@dmdirc.com >
Automatic-Compile: Gregory Holmes <greg@dmdirc.com >
14 gadus atpakaļ
Chris Smith
19d31707ed
Update Twitter parser for new methods
Change-Id: I1dac30977798780148eb27b8279a56a86b3bf890
Depends-On: Ia0b147cfe1af5d5d5d1eae34c82e50ce23578d10
Reviewed-on: http://gerrit.dmdirc.com/980
Automatic-Compile: Chris Smith <chris@dmdirc.com >
Reviewed-by: Gregory Holmes <greg@dmdirc.com >
14 gadus atpakaļ
Gregory Holmes
16b869a995
Fixes issue 3515: Twitter parser NPEs in the ctor if you dont give it a user
Change-Id: I754c511f161c0ba4ef1b1cba36e0c8a6d9e9e717
Reviewed-on: http://gerrit.dmdirc.com/743
Automatic-Compile: DMDirc Local Commits <dmdirc@googlemail.com >
Reviewed-by: Chris Smith <chris@dmdirc.com >
14 gadus atpakaļ
Gregory Holmes
4fcf2e7a76
Add support for twitters (migth not work!)
Change-Id: I135ec863e457b741432fd59bc170b0ecc8c26718
Reviewed-on: http://gerrit.dmdirc.com/744
Reviewed-by: Chris Smith <chris@dmdirc.com >
Automatic-Compile: DMDirc Local Commits <dmdirc@googlemail.com >
14 gadus atpakaļ
Chris Smith
e90637059f
Plugin identities and icons
Twitter icons for servers and prefs
Twitter identity for server icons
Swing UI identity for #DMDirc backgrounds
Change-Id: I165ffbd0b736dcf7d5aa2fd4d43871f00ff94d98
Reviewed-on: http://gerrit.dmdirc.com/663
Automatic-Compile: Gregory Holmes <greg@dmdirc.com >
Reviewed-by: Gregory Holmes <greg@dmdirc.com >
14 gadus atpakaļ