[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    branches/KDE/3.5/kdepim/wizards
From:       Will Stephenson <lists () stevello ! free-online ! co ! uk>
Date:       2005-07-27 16:32:53
Message-ID: 1122481973.184637.28518.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 439296 by wstephens:

Allow the user to set the soap port in the wizard, since some servers
just have to be different.


 M  +4 -0      groupwise.kcfg  
 M  +17 -9     groupwisewizard.cpp  
 M  +1 -0      groupwisewizard.h  


--- branches/KDE/3.5/kdepim/wizards/groupwise.kcfg #439295:439296
@@ -16,6 +16,10 @@
     <entry key="User" type="String" >
       <label>User name</label>
     </entry>
+    <entry key="Path" type="String" >
+      <label>Path to SOAP interface</label>
+      <default>/soap</default>
+    </entry>
     <entry key="Password" type="String" >
       <label>User password</label>
     </entry>
--- branches/KDE/3.5/kdepim/wizards/groupwisewizard.cpp #439295:439296
@@ -46,7 +46,7 @@
   if ( GroupwiseConfig::self()->useHttps() ) url = "https";
   else url = "http";
   url += "://" + GroupwiseConfig::self()->host() + ":" +
-    QString::number( GroupwiseConfig::self()->port() ) + "/soap/";
+    QString::number( GroupwiseConfig::self()->port() ) + GroupwiseConfig::self()->path();
   return url;
 }
 
@@ -196,7 +196,7 @@
       c->file = "korganizerrc";
       c->group = "FreeBusy";
       c->name = "FreeBusyRetrieveUrl";
-      c->value = "groupwise://" + GroupwiseConfig::self()->host() +
+      c->value = "groupwise://" + GroupwiseConfig::self()->host() + GroupwiseConfig::self()->path() +
         "/freebusy/";
       changes.append( c );
 
@@ -278,24 +278,29 @@
   mServerEdit = new KLineEdit( page );
   topLayout->addWidget( mServerEdit, 0, 1 );
 
+  label = new QLabel( i18n("Path to SOAP interface:"), page );
+  topLayout->addWidget( label, 1, 0 );
+  mPathEdit = new KLineEdit( page );
+  topLayout->addWidget( mPathEdit, 1, 1 );
+
   label = new QLabel( i18n("Port:"), page );
-  topLayout->addWidget( label, 1, 0 );
+  topLayout->addWidget( label, 2, 0 );
   mPortEdit = new QSpinBox( 1, 65536, 1, page );
-  topLayout->addWidget( mPortEdit, 1, 1 );
+  topLayout->addWidget( mPortEdit, 2, 1 );
 
   label = new QLabel( i18n("User name:"), page );
-  topLayout->addWidget( label, 2, 0 );
+  topLayout->addWidget( label, 3, 0 );
   mUserEdit = new KLineEdit( page );
-  topLayout->addWidget( mUserEdit, 2, 1 );
+  topLayout->addWidget( mUserEdit, 3, 1 );
 
   label = new QLabel( i18n("Password:"), page );
-  topLayout->addWidget( label, 3, 0 );
+  topLayout->addWidget( label, 4, 0 );
   mPasswordEdit = new KLineEdit( page );
   mPasswordEdit->setEchoMode( KLineEdit::Password );
-  topLayout->addWidget( mPasswordEdit, 3, 1 );
+  topLayout->addWidget( mPasswordEdit, 4, 1 );
 
   mSavePasswordCheck = new QCheckBox( i18n("Save password"), page );
-  topLayout->addMultiCellWidget( mSavePasswordCheck, 4, 4, 0, 1 );
+  topLayout->addMultiCellWidget( mSavePasswordCheck, 5, 5, 0, 1 );
 
   mSecureCheck = new QCheckBox( i18n("Encrypt communication with server"),
                                 page );
@@ -352,6 +357,7 @@
 QString GroupwiseWizard::validate()
 {
   if( mServerEdit->text().isEmpty() ||
+      mPathEdit->text().isEmpty() ||
       mPortEdit->text().isEmpty() ||
       mUserEdit->text().isEmpty() ||
       mPasswordEdit->text().isEmpty() )
@@ -370,6 +376,7 @@
 void GroupwiseWizard::usrReadConfig()
 {
   mServerEdit->setText( GroupwiseConfig::self()->host() );
+  mPathEdit->setText( GroupwiseConfig::self()->path() );
   mPortEdit->setValue( GroupwiseConfig::self()->port() );
   mUserEdit->setText( GroupwiseConfig::self()->user() );
   mPasswordEdit->setText( GroupwiseConfig::self()->password() );
@@ -383,6 +390,7 @@
 void GroupwiseWizard::usrWriteConfig()
 {
   GroupwiseConfig::self()->setHost( mServerEdit->text() );
+  GroupwiseConfig::self()->setPath( mPathEdit->text() );
   GroupwiseConfig::self()->setPort( mPortEdit->value() );
   GroupwiseConfig::self()->setUser( mUserEdit->text() );
   GroupwiseConfig::self()->setPassword( mPasswordEdit->text() );
--- branches/KDE/3.5/kdepim/wizards/groupwisewizard.h #439295:439296
@@ -44,6 +44,7 @@
 
   private:
     KLineEdit *mServerEdit;
+    KLineEdit *mPathEdit;
     QSpinBox *mPortEdit;
     KLineEdit *mUserEdit;
     KLineEdit *mPasswordEdit;
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic