You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
71 lines
2.4 KiB
71 lines
2.4 KiB
15 years ago
|
/*
|
||
|
* Copyright (C) 2007 Dukju Ahn (dukjuahn@gmail.com)
|
||
|
*
|
||
|
* This program is free software; you can redistribute it and/or
|
||
|
* modify it under the terms of the GNU General Public
|
||
|
* License as published by the Free Software Foundation; either
|
||
|
* version 2 of the License, or (at your option) any later version.
|
||
|
*
|
||
|
* This program is distributed in the hope that it will be useful,
|
||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||
|
* Library General Public License for more details.
|
||
|
*/
|
||
|
|
||
11 years ago
|
#include "tdevsvnd_widgets.h"
|
||
14 years ago
|
#include <tqpushbutton.h>
|
||
|
#include <tqlistview.h>
|
||
|
#include <tqlabel.h>
|
||
12 years ago
|
#include <tdelocale.h>
|
||
15 years ago
|
|
||
13 years ago
|
SvnSSLTrustPrompt::SvnSSLTrustPrompt( TQWidget* parent, const char* name, bool modal, WFlags f )
|
||
|
:SvnSSLTrustPromptBase( parent, name, modal, f )
|
||
15 years ago
|
, m_code(-1)
|
||
|
{
|
||
|
listView1->setColumnText( 0, "Items" );
|
||
|
listView1->setColumnText( 1, "Values" );
|
||
|
btnPermanent->setText(i18n("Accept Permanently"));
|
||
|
btnTemporary->setText(i18n("Accept Temporarily"));
|
||
|
btnReject->setText(i18n("Reject"));
|
||
14 years ago
|
connect( btnPermanent, TQT_SIGNAL(clicked()), this, TQT_SLOT(setPermanent()) );
|
||
|
connect( btnTemporary, TQT_SIGNAL(clicked()), this, TQT_SLOT(setTemporary()) );
|
||
|
connect( btnReject, TQT_SIGNAL(clicked()), this, TQT_SLOT(setRejected ()) );
|
||
15 years ago
|
}
|
||
|
SvnSSLTrustPrompt::~SvnSSLTrustPrompt()
|
||
|
{}
|
||
|
|
||
14 years ago
|
void SvnSSLTrustPrompt::setupCertInfo( TQString hostname, TQString fingerPrint, TQString validfrom, TQString validuntil, TQString issuerName, TQString ascii_cert )
|
||
15 years ago
|
{
|
||
|
// setup texts
|
||
14 years ago
|
TQListViewItem *host= new TQListViewItem(listView1, i18n("Hostname"), hostname );
|
||
|
TQListViewItem *finger = new TQListViewItem(listView1, i18n("FingerPrint"), fingerPrint );
|
||
|
TQListViewItem *validFrom = new TQListViewItem(listView1, i18n("Valid From"), validfrom );
|
||
|
TQListViewItem *validUntil = new TQListViewItem(listView1, i18n("Valid Until"), validuntil );
|
||
|
TQListViewItem *issName = new TQListViewItem(listView1, i18n("Issuer"), issuerName );
|
||
|
TQListViewItem *cert = new TQListViewItem(listView1, i18n("Cert"), ascii_cert );
|
||
15 years ago
|
}
|
||
14 years ago
|
void SvnSSLTrustPrompt::setupFailedReasonMsg( TQString msg )
|
||
15 years ago
|
{
|
||
|
errMsgLabel->setText( msg );
|
||
|
}
|
||
|
int SvnSSLTrustPrompt::code()
|
||
|
{
|
||
|
return m_code;
|
||
|
}
|
||
|
|
||
|
void SvnSSLTrustPrompt::setPermanent()
|
||
|
{
|
||
|
m_code = 1;
|
||
|
}
|
||
|
|
||
|
void SvnSSLTrustPrompt::setTemporary()
|
||
|
{
|
||
|
m_code = 0;
|
||
|
}
|
||
|
|
||
|
void SvnSSLTrustPrompt::setRejected()
|
||
|
{
|
||
|
m_code = -1;
|
||
|
}
|
||
11 years ago
|
#include "tdevsvnd_widgets.moc"
|