TDE personal information management applications
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.

korncfgimpl.h 1.6KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. /*
  2. * Copyright (C) 2004, Mart Kelder (mart.kde@hccnet.nl)
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License as published by
  6. * the Free Software Foundation; either version 2 of the License, or
  7. * (at your option) any later version.
  8. *
  9. * This program is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. * GNU General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU General Public License
  15. * along with this program; if not, write to the Free Software
  16. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  17. */
  18. #ifndef MK_KORNCFGIMPL_H
  19. #define MK_KORNCFGIMPL_H
  20. class TDEConfig;
  21. #include "korncfg.h"
  22. class KDialogBase;
  23. class TQObject;
  24. class TQString;
  25. class KornCfgImpl : public KornCfgWidget
  26. { Q_OBJECT
  27. public:
  28. KornCfgImpl( TQWidget * parent = 0, const char * name = 0 );
  29. ~KornCfgImpl();
  30. private slots:
  31. virtual void slotDialogDestroyed();
  32. void slotElementsSwapped( int box1, int box2 );
  33. void slotElementDeleted( int box );
  34. protected slots:
  35. virtual void slotEditBox();
  36. virtual void slotActivated( const TQString& );
  37. virtual void slotActivated( const int );
  38. virtual void slotSetDefaults( const TQString&, const int, TDEConfig* );
  39. public slots:
  40. virtual void slotOK();
  41. virtual void slotCancel();
  42. virtual void slotApply();
  43. private:
  44. void readConfig();
  45. void writeConfig();
  46. void rewritePasswords();
  47. TDEConfig *_config;
  48. KDialogBase *_base;
  49. };
  50. #endif //MK_KORNCFGIMPL_H