knewstuffsecure.cpp
83 KMessageBox::error(parentWidget(), i18n("There was an error with the downloaded resource tarball file. Possible causes are damaged archive or invalid directory structure in the archive."), i18n("Resource Installation Error"));
111 errorString += "<br>- " + i18n("The signature is bad, the archive might be broken or altered.");
131 signatureStr = i18n("The resource was signed with key <i>0x%1</i>, belonging to <i>%2 <%3></i>.").arg(key.id.right(8)).arg(key.name).arg(key.mail);
137 if (KMessageBox::warningContinueCancel(parentWidget(), i18n("<qt>There is a problem with the resource file you have downloaded. The errors are :<b>%1</b><br>%2<br><br>Installation of the resource is <b>not recommended</b>.<br><br>Do you want to proceed with the installation?</qt>").arg(errorString).arg(signatureStr), i18n("Problematic Resource File")) == KMessageBox::Continue)
140 KMessageBox::information(parentWidget(), i18n("<qt>%1<br><br>Press OK to install it.</qt>").arg(signatureStr), i18n("Valid Resource"), "Show Valid Signature Information");
150 for (TQMap<TQString, TQString>::ConstIterator it = m_installedResources.constBegin(); it != m_installedResources.constEnd(); ++it)
157 disconnect(Security::ref(), TQT_SIGNAL(validityResult(int)), this, TQT_SLOT(slotValidated(int)));
182 TDEIO::NetAccess::file_copy(KURL::fromPathOrURL(fileName), KURL::fromPathOrURL(m_signedFileName), -1, true);
195 if (KMessageBox::warningContinueCancel(parentWidget(), i18n("There are no keys usable for signing or you did not entered the correct passphrase.\nProceed without signing the resource?")) == KMessageBox::Cancel)
This class provides the functionality to download and upload "new stuff".
Definition: knewstuff.h:70
bool createUploadFile(const TQString &fileName)
Reimplemented for internal reasons.
Definition: knewstuffsecure.cpp:168
void removeTempDirectory()
Removes the temporary directory m_tempDir.
Definition: knewstuffsecure.cpp:230
virtual void installResource()=0
Installs the resource specified by m_tarName.
void ignoreInstallResult(bool ignore)
Ignores the return value of the install method.
Definition: engine.cpp:443
TDENewStuffSecure(const TQString &type, TQWidget *parentWidget=0)
Constructor.
Definition: knewstuffsecure.cpp:36
bool install(const TQString &fileName)
Installs the downloaded resource.
Definition: knewstuffsecure.cpp:49
void uploadResource(const TQString &fileName)
Signs the file and uploads to the central server.
Definition: knewstuffsecure.cpp:174