Initial TDE conversion.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/1/head
Slávek Banko 4 years ago
parent af07d98a53
commit 031ded8cf8
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -12,7 +12,7 @@ cmake_minimum_required( VERSION 2.8.12 )
##### general package setup ##################### ##### general package setup #####################
project( ksshaskpass ) project( ksshaskpass )
set( VERSION 3.5.13.3 ) set( VERSION 14.0.11 )
##### include essential cmake modules ########### ##### include essential cmake modules ###########

@ -1,5 +1,5 @@
Ksshaskpass - a TDE version of ssh-askpass with KWallet support Ksshaskpass - a TDE version of ssh-askpass with TDEWallet support
Ksshaskpass is a TDE version of ssh-askpass. The usual TDE dialog box is Ksshaskpass is a TDE version of ssh-askpass. The usual TDE dialog box is

@ -1,11 +1,11 @@
.TH KSSHASKPASS 1 .TH KSSHASKPASS 1
.SH NAME .SH NAME
ksshaskpass \- prompts a user for a passphrase using KDE ksshaskpass \- prompts a user for a passphrase using TDE
.SH SYNOPSIS .SH SYNOPSIS
.B kdesshaskpass .B ksshaskpass
.SH DESCRIPTION .SH DESCRIPTION
.B kshaskpass .B ksshaskpass
is a KDE-based passphrase dialog for use with OpenSSH. is a TDE-based passphrase dialog for use with OpenSSH.
It is intended to be called by the It is intended to be called by the
.BR ssh\-add (1) .BR ssh\-add (1)
program and not invoked directly. program and not invoked directly.
@ -17,7 +17,7 @@ This happens automatically in the case where
.B ssh\-add .B ssh\-add
is invoked from one's is invoked from one's
.B ~/.xsession .B ~/.xsession
or as one of the KDE startup programs, for example. or as one of the TDE startup programs, for example.
.PP .PP
In order to be called automatically by In order to be called automatically by
.BR ssh\-add , .BR ssh\-add ,

@ -19,8 +19,8 @@ tde_add_executable( ${PROJECT_NAME} AUTOMOC
SOURCES SOURCES
ksshaskpass.cpp ksshaskpass.cpp
LINK LINK
kdeui-shared tdeui-shared
kio-shared tdeio-shared
DESTINATION ${BIN_INSTALL_DIR} DESTINATION ${BIN_INSTALL_DIR}
) )

@ -19,28 +19,28 @@
#include <iostream> #include <iostream>
#include <kwallet.h> #include <tdewallet.h>
#include <kpassdlg.h> #include <kpassdlg.h>
#include <kaboutdata.h> #include <tdeaboutdata.h>
#include <kapplication.h> #include <tdeapplication.h>
#include <kcmdlineargs.h> #include <tdecmdlineargs.h>
#include <klocale.h> #include <tdelocale.h>
static KCmdLineOptions options[] = static TDECmdLineOptions options[] =
{ {
{ "+[dialog]", I18N_NOOP( "Dialog message. Leave undefined for default message" ), 0 }, { "+[dialog]", I18N_NOOP( "Dialog message. Leave undefined for default message" ), 0 },
KCmdLineLastOption TDECmdLineLastOption
}; };
int main(int argc, char **argv) int main(int argc, char **argv)
{ {
KAboutData about ( TDEAboutData about (
"Ksshaskpass", // appName "Ksshaskpass", // appName
I18N_NOOP("Ksshaskpass"), // programName I18N_NOOP("Ksshaskpass"), // programName
"0.4.1", // version "0.4.1", // version
I18N_NOOP("KDE version of ssh-askpass"), // shortDescription I18N_NOOP("TDE version of ssh-askpass"), // shortDescription
KAboutData::License_GPL, // licenseType TDEAboutData::License_GPL, // licenseType
"(c) 2006 Hans van Leeuwen\n(c) 2008 Armin Berres", // copyrightStatement statement "(c) 2006 Hans van Leeuwen\n(c) 2008 Armin Berres", // copyrightStatement statement
I18N_NOOP("Ksshaskpass allows you to interactively prompt users for a passphrase for ssh-add"), // text I18N_NOOP("Ksshaskpass allows you to interactively prompt users for a passphrase for ssh-add"), // text
"http://www.kde-apps.org/content/edit.php?content=50971", // homePageAddress "http://www.kde-apps.org/content/edit.php?content=50971", // homePageAddress
@ -49,11 +49,11 @@ int main(int argc, char **argv)
about.addAuthor("Armin Berres", 0, "trigger@space-based.de"); about.addAuthor("Armin Berres", 0, "trigger@space-based.de");
about.addAuthor("Hans van Leeuwen", 0, "hanz@hanz.nl"); about.addAuthor("Hans van Leeuwen", 0, "hanz@hanz.nl");
KCmdLineArgs::init(argc, argv, &about); TDECmdLineArgs::init(argc, argv, &about);
KCmdLineArgs::addCmdLineOptions( options ); TDECmdLineArgs::addCmdLineOptions( options );
KCmdLineArgs *args = KCmdLineArgs::parsedArgs(); TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
KApplication app; TDEApplication app;
// Disable Session Management and DCOP. We don't need it. // Disable Session Management and DCOP. We don't need it.
@ -76,8 +76,8 @@ int main(int argc, char **argv)
args->clear(); args->clear();
// Open KWallet to see if a password was previously stored. // Open TDEWallet to see if a password was previously stored.
KWallet::Wallet *wallet = KWallet::Wallet::openWallet( KWallet::Wallet::NetworkWallet(), 0 ); TDEWallet::Wallet *wallet = TDEWallet::Wallet::openWallet( TDEWallet::Wallet::NetworkWallet(), 0 );
if ( wallet && wallet->hasFolder(walletFolder) ) { if ( wallet && wallet->hasFolder(walletFolder) ) {
wallet->setFolder(walletFolder); wallet->setFolder(walletFolder);
@ -108,7 +108,7 @@ int main(int argc, char **argv)
password = kpd->password(); password = kpd->password();
} }
// If "Enable Keep" is enabled, open/create a folder in KWallet and store the password. // If "Enable Keep" is enabled, open/create a folder in TDEWallet and store the password.
if (!password.isNull() && wallet && kpd->keep()) if (!password.isNull() && wallet && kpd->keep())
{ {
if ( !wallet->hasFolder( walletFolder ) ) { if ( !wallet->hasFolder( walletFolder ) ) {
@ -123,7 +123,7 @@ int main(int argc, char **argv)
// Close the wallet if it is opened. // Close the wallet if it is opened.
if (wallet) { if (wallet) {
KWallet::Wallet::closeWallet( KWallet::Wallet::NetworkWallet(), false ); TDEWallet::Wallet::closeWallet( TDEWallet::Wallet::NetworkWallet(), false );
} }
// Finally return the password if one has been entered // Finally return the password if one has been entered

@ -5,7 +5,7 @@
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PACKAGE VERSION\n" "Project-Id-Version: PACKAGE VERSION\n"
"POT-Creation-Date: 2021-08-26 03:28+0200\n" "POT-Creation-Date: 2021-08-26 03:48+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -36,7 +36,7 @@ msgid "Ksshaskpass"
msgstr "" msgstr ""
#: ksshaskpass.cpp:42 #: ksshaskpass.cpp:42
msgid "KDE version of ssh-askpass" msgid "TDE version of ssh-askpass"
msgstr "" msgstr ""
#: ksshaskpass.cpp:45 #: ksshaskpass.cpp:45

Loading…
Cancel
Save