From 031ded8cf8bce48796f34575958d60495b3de42b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Thu, 26 Aug 2021 03:46:34 +0200 Subject: Initial TDE conversion. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- src/ksshaskpass.cpp | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) (limited to 'src/ksshaskpass.cpp') diff --git a/src/ksshaskpass.cpp b/src/ksshaskpass.cpp index bad94c1..036b3dc 100644 --- a/src/ksshaskpass.cpp +++ b/src/ksshaskpass.cpp @@ -19,28 +19,28 @@ #include -#include +#include #include -#include -#include -#include -#include +#include +#include +#include +#include -static KCmdLineOptions options[] = +static TDECmdLineOptions options[] = { { "+[dialog]", I18N_NOOP( "Dialog message. Leave undefined for default message" ), 0 }, - KCmdLineLastOption + TDECmdLineLastOption }; int main(int argc, char **argv) { - KAboutData about ( + TDEAboutData about ( "Ksshaskpass", // appName I18N_NOOP("Ksshaskpass"), // programName "0.4.1", // version - I18N_NOOP("KDE version of ssh-askpass"), // shortDescription - KAboutData::License_GPL, // licenseType + I18N_NOOP("TDE version of ssh-askpass"), // shortDescription + TDEAboutData::License_GPL, // licenseType "(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 "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("Hans van Leeuwen", 0, "hanz@hanz.nl"); - KCmdLineArgs::init(argc, argv, &about); - KCmdLineArgs::addCmdLineOptions( options ); - KCmdLineArgs *args = KCmdLineArgs::parsedArgs(); + TDECmdLineArgs::init(argc, argv, &about); + TDECmdLineArgs::addCmdLineOptions( options ); + TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs(); - KApplication app; + TDEApplication app; // Disable Session Management and DCOP. We don't need it. @@ -76,8 +76,8 @@ int main(int argc, char **argv) args->clear(); - // Open KWallet to see if a password was previously stored. - KWallet::Wallet *wallet = KWallet::Wallet::openWallet( KWallet::Wallet::NetworkWallet(), 0 ); + // Open TDEWallet to see if a password was previously stored. + TDEWallet::Wallet *wallet = TDEWallet::Wallet::openWallet( TDEWallet::Wallet::NetworkWallet(), 0 ); if ( wallet && wallet->hasFolder(walletFolder) ) { wallet->setFolder(walletFolder); @@ -108,7 +108,7 @@ int main(int argc, char **argv) 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 ( !wallet->hasFolder( walletFolder ) ) { @@ -123,7 +123,7 @@ int main(int argc, char **argv) // Close the wallet if it is opened. 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 -- cgit v1.2.1