summaryrefslogtreecommitdiff
authorharlekin <harlekin>2003-04-09 18:39:37 (UTC)
committer harlekin <harlekin>2003-04-09 18:39:37 (UTC)
commit6e2ee769c8e6cba600e235822d5003cfe31e55c5 (patch) (side-by-side diff)
treebd1a63c87a051c9762846f4e75c274814d385e9a
parentbacff63f1e4915c683a409e81b18ffcf5aeceda3 (diff)
downloadopie-6e2ee769c8e6cba600e235822d5003cfe31e55c5.zip
opie-6e2ee769c8e6cba600e235822d5003cfe31e55c5.tar.gz
opie-6e2ee769c8e6cba600e235822d5003cfe31e55c5.tar.bz2
show allways maximized after startup
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--core/settings/security/security.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/settings/security/security.cpp b/core/settings/security/security.cpp
index 2821f4b..4701506 100644
--- a/core/settings/security/security.cpp
+++ b/core/settings/security/security.cpp
@@ -16,96 +16,97 @@
** Contact info@trolltech.com if any conditions of this licensing are
** not clear to you.
**
**********************************************************************/
#include "security.h"
#include <qpe/config.h>
#include <qpe/password.h>
#include <qpe/qpedialog.h>
#include <qcheckbox.h>
#include <qpushbutton.h>
#include <qcombobox.h>
#include <qmessagebox.h>
Security::Security( QWidget* parent, const char* name, WFlags fl )
: SecurityBase( parent, name, TRUE, fl )
{
valid=FALSE;
Config cfg("Security");
cfg.setGroup("Passcode");
passcode = cfg.readEntry("passcode");
passcode_poweron->setChecked(cfg.readBoolEntry("passcode_poweron",FALSE));
cfg.setGroup("Sync");
int auth_peer = cfg.readNumEntry("auth_peer",0xc0a88100);//new default 192.168.129.0/24
int auth_peer_bits = cfg.readNumEntry("auth_peer_bits",24);
selectNet(auth_peer,auth_peer_bits);
connect(syncnet, SIGNAL(textChanged(const QString&)),
this, SLOT(setSyncNet(const QString&)));
/*
cfg.setGroup("Remote");
if ( telnetAvailable() )
telnet->setChecked(cfg.readEntry("allow_telnet"));
else
telnet->hide();
if ( sshAvailable() )
ssh->setChecked(cfg.readEntry("allow_ssh"));
else
ssh->hide();
*/
connect(changepasscode,SIGNAL(clicked()), this, SLOT(changePassCode()));
connect(clearpasscode,SIGNAL(clicked()), this, SLOT(clearPassCode()));
updateGUI();
dl = new QPEDialogListener(this);
+ showMaximized();
}
Security::~Security()
{
}
void Security::updateGUI()
{
bool empty = passcode.isEmpty();
changepasscode->setText( empty ? tr("Set passcode" )
: tr("Change passcode" ) );
passcode_poweron->setEnabled( !empty );
clearpasscode->setEnabled( !empty );
}
void Security::show()
{
valid=FALSE;
setEnabled(FALSE);
SecurityBase::show();
if ( passcode.isEmpty() ) {
// could insist...
//changePassCode();
//if ( passcode.isEmpty() )
//reject();
} else {
QString pc = enterPassCode(tr("Enter passcode"));
if ( pc != passcode ) {
QMessageBox::critical(this, tr("Passcode incorrect"),
tr("The passcode entered is incorrect.\nAccess denied"));
reject();
return;
}
}
setEnabled(TRUE);
valid=TRUE;
}
void Security::accept()
{
applySecurity();
QDialog::accept();
}
void Security::done(int r)