Commit Graph

46 Commits

Author SHA1 Message Date
Marco Martin
135d63c0e9 no camelcase include 2011-05-31 01:26:09 +02:00
Aaron Seigo
6f2284dbd3 don't use PackageMetadata. instead, use a new little class: RemoteObjectDescription 2011-05-31 01:00:03 +02:00
Aaron Seigo
b01348aa84 rely on AppletPrivate::remoteLocation (removing the need for PackageMetadata) and make it a proper KUrl 2011-05-31 00:04:03 +02:00
Aaron Seigo
cd32321b68 Merge branch 'libplasma2_signedpackages' into libplasma2
Conflicts:
	plasma/package.cpp
2011-05-30 23:41:53 +02:00
Aaron Seigo
791c327c87 use QCryptographicHash 2011-05-27 12:33:31 +02:00
Aaron Seigo
1a255a51de and now packages are able to be verified by signed hash 2011-05-26 16:27:30 +02:00
Aaron Seigo
73758abf97 start of package verification 2011-05-26 16:02:56 +02:00
Aaron Seigo
7c095ebd31 used detached sigs; at least this way gpgme++ is giving me fingerprints on success 2011-05-26 15:12:56 +02:00
Aaron Seigo
5f0face742 fix localality check, improve debug output 2011-05-26 14:32:32 +02:00
Aaron Seigo
670f73702a minor scrubs 2011-05-26 14:04:12 +02:00
Aaron Seigo
e7d40b158e make signerOf sensible
* close opened file handles
* don't create QFile objects that are never used
* check for locality as it must with the current implementation be local files we're checking
* get rid of the unhelpful Private class method and merge it into the main class method
* don't append .asc to the packagePath accidentally when making the sig path
2011-05-26 13:37:44 +02:00
Aaron Seigo
223622f786 remove keyring manager like methods which don't stay in scope for purpuose of this class. 2011-05-26 13:19:41 +02:00
Aaron Seigo
155b5bd879 variety of functionality, performance and style fixes
it was like pulling on a thread in a sweater: the changes just kept rolling
into each other...

* don't load all the keys at start, just cache them as they are requested
* use GpgContext::key to get the key for us rather than looping through all keys
* fix SignedBy so it doesn't say a key is signed by every other key(!)
* FullTrus*t*ed
2011-05-24 14:10:59 +02:00
Aaron Seigo
304f6f4344 slightly more readable 2011-05-24 13:24:08 +02:00
Aaron Seigo
1eeceda235 more clarity changes and removal of extraneous implementation detail info 2011-05-24 13:24:08 +02:00
Aaron Seigo
b79d23aea1 avoid lots of uselessness 2011-05-24 13:24:08 +02:00
Aaron Seigo
283cea6f7a fix signature 2011-05-24 13:24:08 +02:00
Aaron Seigo
787ff64871 more style fixes 2011-05-24 13:24:08 +02:00
Aaron Seigo
bb4ecbfb5f use sets instead of lists since we're mostly doing contains() 2011-05-24 13:24:07 +02:00
Aaron Seigo
e0a6591371 this isn't plasmoid specific in the least 2011-05-24 13:24:07 +02:00
Aaron Seigo
a21b5a8844 simple style fixes 2011-05-24 13:24:07 +02:00
Aaron Seigo
fc754ec380 no point in having two KDirWatches when we can have one
also fix the signatures of the slots in the private class
2011-05-24 13:24:07 +02:00
Aaron Seigo
9f4124973f don't output so much useless garbage 2011-05-24 13:24:07 +02:00
Aaron Seigo
fb4453a55f only use the install path for ultimate key storage
this should not be writable by the user, but is readable. safer than
picking the first dir that matches ... which would usually be in the
user's own dir. *facepalm*
2011-05-24 13:24:07 +02:00
Aaron Seigo
5496456af4 better name for the method that imports ulimately trusted keys 2011-05-24 13:24:07 +02:00
Aaron Seigo
4766f0e63e get rid of a memory leak and an unused/unuseful method in the private class 2011-05-24 13:24:07 +02:00
Aaron Seigo
5a9373ae0d cleanups 2011-05-24 13:23:39 +02:00
Kevin Ottens
6ef3059ced Provide a confirmation dialog for scripted remote widgets
Make really really sure the user wants to install the widget on his
system. Indeed, they're scripted and the user might not trust the source
so provide some information on them and the ability to cancel the
action.

Implementation wise it uses a KMessageBox from a job which is really not
great but the best we can do so far (remote widget support needs a
refactoring to be able to improve that). Also, the bad bad man forced
me to use a HTML table in the message box label to align properly the
information... yes, aseigo, looking at you... the 90s are calling their
HTML tables back!
2011-04-29 20:49:14 +02:00
Aaron Seigo
9cdbf422ff consolidate remoting files, add signing gsoc 2011-04-29 15:18:35 +02:00
Artur Duque de Souza
97b37637fa Export icon information to package metadata for remote service
Get the original package metadata's icon and inject this information
into the package metadata that is going to be sent to the remote targets.

This way we are able to use the icon in several UIs which makes things
more beautiful ;)

CCMAIL:ervin@kde.org
Signed-off-by: Artur Duque de Souza <asouza@kde.org>
2011-04-28 18:52:34 -03:00
Aaron Seigo
fa109eaaf9 initialize the value of applet
BUG:227453
2011-04-28 21:49:07 +02:00
Rob Scheepmaker
fa74621c21 relicense to LGPL v2
svn path=/trunk/KDE/kdelibs/; revision=1076714
2010-01-18 18:24:57 +00:00
John Layt
6e9943e36c krazy fixes, mostly include guards and copyright tags
svn path=/trunk/KDE/kdelibs/; revision=1066779
2009-12-27 22:16:11 +00:00
Aaron Charles Reichman
4c31342c2e Fixed some spelling errors flagged by krazy
svn path=/trunk/KDE/kdelibs/; revision=1060866
2009-12-10 09:16:30 +00:00
Aaron J. Seigo
5b61dd019e private headers
svn path=/trunk/KDE/kdelibs/; revision=1053919
2009-11-25 01:08:35 +00:00
Andrew Coles
ffcb8b6e62 Proof-reading.
svn path=/trunk/KDE/kdelibs/; revision=1033253
2009-10-09 20:07:44 +00:00
Rob Scheepmaker
5b56a34dfa Support drag & drop of plasma:// and plasma+zeroconf:// urls onto plasma containments.
svn path=/trunk/KDE/kdelibs/; revision=1026777
2009-09-22 15:29:08 +00:00
Aaron J. Seigo
72c4534396 SVN_SILENT: more ws
svn path=/trunk/KDE/kdelibs/; revision=1026461
2009-09-21 20:37:06 +00:00
Aaron J. Seigo
2590b21978 SVN_SILENT: style fixes
svn path=/trunk/KDE/kdelibs/; revision=1026383
2009-09-21 16:48:19 +00:00
André Wöbbeking
e1c7e86bcf compile without QCA
CCMAIL:r.scheepmaker@student.utwente.nl

svn path=/trunk/KDE/kdelibs/; revision=1021723
2009-09-09 21:54:31 +00:00
Rob Scheepmaker
19e7f85056 Check for supported features in QCA before actually using the stuff.
svn path=/trunk/KDE/kdelibs/; revision=1021634
2009-09-09 17:36:17 +00:00
Rob Scheepmaker
c96119f4ed Rename the config.h.in to config-plasma.h.in for some added clarity.
svn path=/trunk/KDE/kdelibs/; revision=1021587
2009-09-09 15:37:03 +00:00
Rob Scheepmaker
602ef9280f Let's just use kdewallet instead of a seperate wallet for plasma.
svn path=/trunk/KDE/kdelibs/; revision=1021548
2009-09-09 13:47:51 +00:00
Rob Scheepmaker
34b9e01ac4 Make QCA2 an optional dependency for libplasma, so QCA2 can remain optional for all of kdelibs. Just disable remote widgets functionality if QCA2 is missing.
svn path=/trunk/KDE/kdelibs/; revision=1021543
2009-09-09 13:40:16 +00:00
Rob Scheepmaker
c69e570b68 Add "freely accessable for everybody" checkbox to the publish page in
the applet config.

svn path=/trunk/KDE/kdelibs/; revision=1019593
2009-09-04 00:08:26 +00:00
Aaron J. Seigo
01ec8984e2 more remote code into a subdir
svn path=/trunk/KDE/kdelibs/; revision=1019555
2009-09-03 21:10:33 +00:00