OSSP CVS Repository

ossp - Difference in ossp-pkg/as/as-gui/as_panel.h versions 1.5 and 1.6
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/as/as-gui/as_panel.h 1.5 -> 1.6

--- as_panel.h   2003/02/12 17:00:43     1.5
+++ as_panel.h   2003/02/12 19:33:05     1.6
@@ -50,6 +50,8 @@
 #include <qstylefactory.h>
 #include <qlayout.h>
 
+#include "as_gui.h" // For usage of style_t
+
 
 class Prefpanel : public QDialog
 {
@@ -87,24 +89,46 @@
 
 public:
     // Accessor get methods
+    QString getStyle(void)     {return (m_pStylegroup->selected()->text());};
     QString getAccounts(void)  {return (m_pAcctline->text());};
     QString getEvents(void)    {return (m_pEventline->text());};
     QString getUser(void)      {return (m_pUserline->text());};
     QString getHome(void)      {return (m_pHomeline->text());};
     QString getCorbahost(void) {return (m_pCorbaline->text());};
     QString getSoaphost(void)  {return (m_pSoapline->text());};
+    bool getCorbaon(void)      {return (m_pCorbacheck->isChecked());};
+    bool getSoapon(void)       {return (m_pSoapcheck->isChecked());};
+    bool getBackon(void)       {return (m_pBackupcheck->isChecked());};
+    bool getExtendon(void)     {return (m_pExtendcheck->isChecked());};
 
     // Accessor set methods
-    void setAccounts(const QString &Instr)  {m_pAcctline->setText(Instr);};
-    void setEvents(const QString &Instr)    {m_pEventline->setText(Instr);};
-    void setUser(const QString &Instr)      {m_pUserline->setText(Instr);};
-    void setHome(const QString &Instr)      {m_pHomeline->setText(Instr);};
-    void setCorbahost(const QString &Instr) {m_pCorbaline->setText(Instr);};
-    void setSoaphost(const QString &Instr)  {m_pSoapline->setText(Instr);};
+    void setAccounts(const QString &kInstr)  {m_pAcctline->setText(kInstr);};
+    void setEvents(const QString &kInstr)    {m_pEventline->setText(kInstr);};
+    void setUser(const QString &kInstr)      {m_pUserline->setText(kInstr);};
+    void setHome(const QString &kInstr)      {m_pHomeline->setText(kInstr);};
+    void setCorbahost(const QString &kInstr) {m_pCorbaline->setText(kInstr);};
+    void setSoaphost(const QString &kInstr)  {m_pSoapline->setText(kInstr);};
+    void setBackon(const bool &kbEnable = true)   {m_pBackupcheck->setChecked(kbEnable);};
+    void setExtendon(const bool &kbEnable = true) {m_pExtendcheck->setChecked(kbEnable);};
+    void setCorbaon(const bool &kbEnable = true) {
+        m_pCorbaline->setEnabled(kbEnable);
+        m_pCorbacheck->setChecked(kbEnable);
+    };
+    void setSoapon(const bool &kbEnable = true) {
+        m_pSoapline->setEnabled(kbEnable);
+        m_pSoapcheck->setChecked(kbEnable);
+    };
+    void setStyle(const char *pkszStyle) {
+        for (int nIter = 0; nIter < m_pStylegroup->count(); nIter++)
+            if (m_pStylegroup->find(nIter)->text() == pkszStyle)
+                m_pStylegroup->setButton(nIter);
+    };
 
 protected slots:
     virtual void textChange(void);
     void apply(void);
+    void enableCorba(bool bOn) {m_pCorbaline->setEnabled(bOn);};
+    void enableSoap(bool bOn) {m_pSoapline->setEnabled(bOn);};
 };
 
 #endif // PREFPANEL_H

CVSTrac 2.0.1