Smb4K – Samba (SMB) share advanced browser
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.

110 lines
3.7KB

  1. /***************************************************************************
  2. smb4tdersyncoptions - The configuration page for the rsync options
  3. -------------------
  4. begin : So Nov 20 2005
  5. copyright : (C) 2005-2007 by Alexander Reinholdt
  6. email : dustpuppy@users.berlios.de
  7. ***************************************************************************/
  8. /***************************************************************************
  9. * This program is free software; you can redistribute it and/or modify *
  10. * it under the terms of the GNU General Public License as published by *
  11. * the Free Software Foundation; either version 2 of the License, or *
  12. * (at your option) any later version. *
  13. * *
  14. * This program is distributed in the hope that it will be useful, but *
  15. * WITHOUT ANY WARRANTY; without even the implied warranty of *
  16. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
  17. * General Public License for more details. *
  18. * *
  19. * You should have received a copy of the GNU General Public License *
  20. * along with this program; if not, write to the *
  21. * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, *
  22. * MA 02110-1301 USA *
  23. ***************************************************************************/
  24. #ifndef SMB4TDERSYNCOPTIONS_H
  25. #define SMB4TDERSYNCOPTIONS_H
  26. #ifdef HAVE_CONFIG_H
  27. #include <config.h>
  28. #endif
  29. // TQt includes
  30. #include <tqtabwidget.h>
  31. /**
  32. * This class belongs to the configuration dialog and takes
  33. * care of the options that can be defined for rsync.
  34. *
  35. * @author Alexander Reinholdt <dustpuppy@users.berlios.de>
  36. */
  37. class Smb4KRsyncOptions : public TQTabWidget
  38. {
  39. Q_OBJECT
  40. public:
  41. /**
  42. * The constructor.
  43. *
  44. * @param parent The parent widget
  45. *
  46. * @param name The name of this widget
  47. */
  48. Smb4KRsyncOptions( TQWidget *parent = 0, const char *name = 0 );
  49. /**
  50. * The destructor
  51. */
  52. ~Smb4KRsyncOptions();
  53. protected slots:
  54. /**
  55. * This slot is invoked if the "Archive mode" checkbox has been
  56. * toggled.
  57. *
  58. * @param on Is TRUE if the checkbox is checked and FALSE otherwise.
  59. */
  60. void slotArchiveToggled( bool on );
  61. /**
  62. * This slot is invoked if the --archive option has to be switched
  63. * off.
  64. *
  65. * @param on Is FALSE if one of the connected checkboxes is unchecked
  66. * and TRUE otherwise.
  67. */
  68. void slotUncheckArchive( bool on );
  69. /**
  70. * This slot is called, when the backup checkbox has been toggled.
  71. * It enables/disables all other backup options according to the
  72. * state the backup button is in.
  73. *
  74. * @param on Is TRUE if the m_backup check box has been
  75. * checked and FALSE otherwise.
  76. */
  77. void slotBackupToggled( bool on );
  78. /**
  79. * This slot is called if the '-F' shortcut has been toggled.
  80. * It unchecks the '-F -F' shortcut.
  81. *
  82. * @param on Is TRUE is m_f_filter is checked and FALSE otherwise.
  83. */
  84. void slotFShortcutToggled( bool on );
  85. /**
  86. * This slot is called if the '-F -F' shortcut has been toggled.
  87. * It unchecks the '-F' shortcut.
  88. *
  89. * @param on Is TRUE is m_ff_filter is checked and FALSE otherwise.
  90. */
  91. void slotFFShortcutToggled( bool on );
  92. };
  93. #endif