From ceb2c2e93f81f1222f20decc7efbe6d4f2ddf2cf Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sat, 22 Mar 2025 13:43:32 +0900 Subject: [PATCH] Replace TRUE/FALSE with boolean values true/false Signed-off-by: Michele Calgaro --- plugin/smb4k_konqplugin.cpp | 6 ++-- smb4k/browser/smb4knetworkbrowser.h | 6 ++-- smb4k/browser/smb4knetworkbrowseritem.h | 12 +++---- smb4k/configdlg/smb4tdeconfigdialog.h | 4 +-- smb4k/configdlg/smb4tdersyncoptions.h | 14 ++++---- smb4k/core/smb4kbookmark.h | 6 ++-- smb4k/core/smb4kcore.h | 10 +++--- smb4k/core/smb4kmounter.h | 12 +++---- smb4k/core/smb4knetworkitems.h | 46 ++++++++++++------------ smb4k/core/smb4kpasswordhandler.h | 10 +++--- smb4k/core/smb4kpreviewer.h | 6 ++-- smb4k/core/smb4kpreviewitem.cpp | 2 +- smb4k/core/smb4kpreviewitem.h | 6 ++-- smb4k/core/smb4kprint.h | 10 +++--- smb4k/core/smb4kprintinfo.h | 6 ++-- smb4k/core/smb4ksambaoptionshandler.h | 14 ++++---- smb4k/core/smb4ksambaoptionsinfo.h | 26 +++++++------- smb4k/core/smb4kscanner.h | 2 +- smb4k/core/smb4kshare.h | 16 ++++----- smb4k/core/smb4ksynchronizer.h | 4 +-- smb4k/core/smb4tdefileio.h | 18 +++++----- smb4k/dialogs/smb4kcustomoptionsdialog.h | 14 ++++---- smb4k/dialogs/smb4kpreviewdialog.h | 10 +++--- smb4k/iconview/smb4ksharesiconviewitem.h | 10 +++--- smb4k/listview/smb4kshareslistviewitem.h | 10 +++--- smb4k/searchdlg/smb4ksearchdialogitem.h | 20 +++++------ smb4k/smb4ksystemtray.h | 10 +++--- utilities/smb4k_umount.cpp | 6 ++-- 28 files changed, 158 insertions(+), 158 deletions(-) diff --git a/plugin/smb4k_konqplugin.cpp b/plugin/smb4k_konqplugin.cpp index 87b9527..8da94bd 100644 --- a/plugin/smb4k_konqplugin.cpp +++ b/plugin/smb4k_konqplugin.cpp @@ -67,9 +67,9 @@ KonqSidebar_Smb4K::KonqSidebar_Smb4K(TDEInstance *inst,TQObject *parent,TQWidget TDEToolBar *topBar = new TDEToolBar( widget, "Topbar" ); topBar->setIconSize(16); - topBar->insertButton( "reload", 0, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slotRescan() ) , TRUE, i18n( "Scan Network" ) ); - topBar->insertButton( "edit-find", 1, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slotSearch() ) , TRUE, i18n( "Search" ) ); - topBar->insertButton( "configure", 2, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slotSmb4KOptionsDlg() ) , TRUE, i18n( "Configure" ) ); + topBar->insertButton( "reload", 0, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slotRescan() ) , true, i18n( "Scan Network" ) ); + topBar->insertButton( "edit-find", 1, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slotSearch() ) , true, i18n( "Search" ) ); + topBar->insertButton( "configure", 2, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slotSmb4KOptionsDlg() ) , true, i18n( "Configure" ) ); // // Browser widget: diff --git a/smb4k/browser/smb4knetworkbrowser.h b/smb4k/browser/smb4knetworkbrowser.h index c1fb000..20e41da 100644 --- a/smb4k/browser/smb4knetworkbrowser.h +++ b/smb4k/browser/smb4knetworkbrowser.h @@ -80,11 +80,11 @@ class Smb4KNetworkBrowser : public TDEListView Smb4KNetworkBrowserToolTip *tooltip() { return m_tooltip; } /** - * Block the showing of tool tips. If @p block is set to TRUE, the + * Block the showing of tool tips. If @p block is set to true, the * current tool tip gets deleted (if there is one) and no tool tip - * will be shown until @p block is reset to FALSE. + * will be shown until @p block is reset to false. * - * @param block Set this parameter to TRUE to block the showing + * @param block Set this parameter to true to block the showing * of tool tips. */ void blockToolTips( bool block ); diff --git a/smb4k/browser/smb4knetworkbrowseritem.h b/smb4k/browser/smb4knetworkbrowseritem.h index 75b10e3..3f8134b 100644 --- a/smb4k/browser/smb4knetworkbrowseritem.h +++ b/smb4k/browser/smb4knetworkbrowseritem.h @@ -139,10 +139,10 @@ class Smb4KNetworkBrowserItem : public TDEListViewItem void update( Smb4KShareItem *item ); /** - * This is a convenience function. It returns TRUE if the item is a - * printer share and FALSE otherwise. + * This is a convenience function. It returns true if the item is a + * printer share and false otherwise. * - * @returns TRUE if the item is a printer share and FALSE otherwise. + * @returns true if the item is a printer share and false otherwise. */ bool isPrinter(); @@ -151,15 +151,15 @@ class Smb4KNetworkBrowserItem : public TDEListViewItem * changed by this function and the item text will be set to italic by * Smb4KNetworkBrowserItem::paintCell(). * - * @param mounted TRUE if the share is mounted and FALSE otherwise + * @param mounted true if the share is mounted and false otherwise */ void setMounted( bool mounted = true ); /** * Tells whether the respective share is shown as mounted or not. For non-share - * items this function will always return FALSE. + * items this function will always return false. * - * @returns TRUE if the share is mounted and FALSE otherwise. + * @returns true if the share is mounted and false otherwise. */ bool isMounted(); diff --git a/smb4k/configdlg/smb4tdeconfigdialog.h b/smb4k/configdlg/smb4tdeconfigdialog.h index 0587c15..4842993 100644 --- a/smb4k/configdlg/smb4tdeconfigdialog.h +++ b/smb4k/configdlg/smb4tdeconfigdialog.h @@ -145,7 +145,7 @@ class Smb4TDEConfigDialog : public TDEConfigDialog /** * Write super user configuration entries to configuration file. * - * @returns TRUE if something needs to be written. + * @returns true if something needs to be written. */ bool writeSuperUserEntries(); @@ -159,7 +159,7 @@ class Smb4TDEConfigDialog : public TDEConfigDialog * need it. This function will report all missing input to the user * via a message box. * - * @returns TRUE if the check passed and FALSE if it failed. + * @returns true if the check passed and false if it failed. */ bool checkSettings(); }; diff --git a/smb4k/configdlg/smb4tdersyncoptions.h b/smb4k/configdlg/smb4tdersyncoptions.h index 4407c7b..dcf8bd4 100644 --- a/smb4k/configdlg/smb4tdersyncoptions.h +++ b/smb4k/configdlg/smb4tdersyncoptions.h @@ -66,7 +66,7 @@ class Smb4KRsyncOptions : public TQTabWidget * This slot is invoked if the "Archive mode" checkbox has been * toggled. * - * @param on Is TRUE if the checkbox is checked and FALSE otherwise. + * @param on Is true if the checkbox is checked and false otherwise. */ void slotArchiveToggled( bool on ); @@ -74,8 +74,8 @@ class Smb4KRsyncOptions : public TQTabWidget * This slot is invoked if the --archive option has to be switched * off. * - * @param on Is FALSE if one of the connected checkboxes is unchecked - * and TRUE otherwise. + * @param on Is false if one of the connected checkboxes is unchecked + * and true otherwise. */ void slotUncheckArchive( bool on ); @@ -84,8 +84,8 @@ class Smb4KRsyncOptions : public TQTabWidget * It enables/disables all other backup options according to the * state the backup button is in. * - * @param on Is TRUE if the m_backup check box has been - * checked and FALSE otherwise. + * @param on Is true if the m_backup check box has been + * checked and false otherwise. */ void slotBackupToggled( bool on ); @@ -93,7 +93,7 @@ class Smb4KRsyncOptions : public TQTabWidget * This slot is called if the '-F' shortcut has been toggled. * It unchecks the '-F -F' shortcut. * - * @param on Is TRUE is m_f_filter is checked and FALSE otherwise. + * @param on Is true is m_f_filter is checked and false otherwise. */ void slotFShortcutToggled( bool on ); @@ -101,7 +101,7 @@ class Smb4KRsyncOptions : public TQTabWidget * This slot is called if the '-F -F' shortcut has been toggled. * It unchecks the '-F' shortcut. * - * @param on Is TRUE is m_ff_filter is checked and FALSE otherwise. + * @param on Is true is m_ff_filter is checked and false otherwise. */ void slotFFShortcutToggled( bool on ); }; diff --git a/smb4k/core/smb4kbookmark.h b/smb4k/core/smb4kbookmark.h index b4b9088..88a0f4f 100644 --- a/smb4k/core/smb4kbookmark.h +++ b/smb4k/core/smb4kbookmark.h @@ -201,12 +201,12 @@ class TDE_EXPORT Smb4KBookmark /** * This function checks if the IP address is valid, i.e. the - * IP address is either IP v4 or IP v6. It returns either TRUE - * or FALSE. + * IP address is either IP v4 or IP v6. It returns either true + * or false. * * @param ip The IP address that's going to be checked. * - * @returns TRUE if the IP address is valid and FALSE otherwise. + * @returns true if the IP address is valid and false otherwise. */ bool ipIsValid( const TQString &ip ); }; diff --git a/smb4k/core/smb4kcore.h b/smb4k/core/smb4kcore.h index 052e8e6..82b500b 100644 --- a/smb4k/core/smb4kcore.h +++ b/smb4k/core/smb4kcore.h @@ -89,7 +89,7 @@ class TDE_EXPORT Smb4KCore : public TQObject static int scannerState() { return self()->m_scanner_state; } /** - * Returns TRUE, if the scanner is running, otherwise FALSE. + * Returns true, if the scanner is running, otherwise false. */ static bool scannerIsRunning() { return self()->m_scanner->isRunning(); } @@ -99,7 +99,7 @@ class TDE_EXPORT Smb4KCore : public TQObject static int mounterState() { return self()->m_mounter_state; } /** - * Returns TRUE, if the mounter is running, otherwise FALSE. + * Returns true, if the mounter is running, otherwise false. */ static bool mounterIsRunning() { return self()->m_mounter->isRunning(); } @@ -109,7 +109,7 @@ class TDE_EXPORT Smb4KCore : public TQObject static int printState() { return self()->m_print_state; } /** - * Returns TRUE, if the print object is running, otherwise FALSE. + * Returns true, if the print object is running, otherwise false. */ static bool printIsRunning() { return self()->m_print->isRunning(); } @@ -119,12 +119,12 @@ class TDE_EXPORT Smb4KCore : public TQObject static int synchronizerState() { return self()->m_syncer_state; } /** - * Returns TRUE, if the synchronizer is running, otherwise FALSE. + * Returns true, if the synchronizer is running, otherwise false. */ static bool synchronizerIsRunning() { return self()->m_synchronizer->isRunning(); } /** - * Returns TRUE if one of the core classes is doing something. + * Returns true if one of the core classes is doing something. */ static bool isRunning(); diff --git a/smb4k/core/smb4kmounter.h b/smb4k/core/smb4kmounter.h index 0aad8e2..f945b9e 100644 --- a/smb4k/core/smb4kmounter.h +++ b/smb4k/core/smb4kmounter.h @@ -85,7 +85,7 @@ class TDE_EXPORT Smb4KMounter : public TQObject /** * Unmounts a share. This can either be done the "normal" way, or you may - * force it. If you decide the force the unmounting by setting @p force to TRUE, + * force it. If you decide the force the unmounting by setting @p force to true, * a lazy unmount will be initiated. With the parameter @p noMessage you can * suppress any error messages. * @@ -94,7 +94,7 @@ class TDE_EXPORT Smb4KMounter : public TQObject * @param force Force the unmounting of the share. * * @param noMessage Determines whether this function should emit an error code in case of an error. - * The default value is FALSE. + * The default value is false. */ void unmountShare( Smb4KShare *share, bool force = false, bool noMessage = false ); @@ -136,23 +136,23 @@ class TDE_EXPORT Smb4KMounter : public TQObject TQValueList findShareByName( const TQString &name ); /** - * This function returns TRUE if a share is mounted and FALSE otherwise. + * This function returns true if a share is mounted and false otherwise. * * @param name The name of the share. It has to look like this: * //HOST/SHARE. * * @param userOnly Specifies whether this function should only consider * shares mounted by the user or all shares that are - * available on the system. The default is TRUE. + * available on the system. The default is true. * - * @return TRUE if the share is mounted and FALSE otherwise. + * @return true if the share is mounted and false otherwise. */ bool isMounted( const TQString &name, bool userOnly = true ); /** * This function reports if the mounter is running or not. * - * @returns TRUE if the scanner is running and FALSE otherwise. + * @returns true if the scanner is running and false otherwise. */ bool isRunning() { return m_working; } diff --git a/smb4k/core/smb4knetworkitems.h b/smb4k/core/smb4knetworkitems.h index fa0b2f6..63e2c0b 100644 --- a/smb4k/core/smb4knetworkitems.h +++ b/smb4k/core/smb4knetworkitems.h @@ -95,7 +95,7 @@ class TDE_EXPORT Smb4KWorkgroupItem void setPseudoMaster(); /** - * Returns TRUE, if the master is a 'pseudo' master. @see setPseudoMaster() + * Returns true, if the master is a 'pseudo' master. @see setPseudoMaster() * for further information. */ bool hasPseudoMaster() const { return m_pseudo; } @@ -144,12 +144,12 @@ class TDE_EXPORT Smb4KWorkgroupItem /** * This function checks if the IP address is valid, i.e. the - * IP address is either IP v4 or IP v6. It returns either TRUE - * or FALSE. + * IP address is either IP v4 or IP v6. It returns either true + * or false. * * @param ip The IP address that's going to be checked. * - * @returns TRUE if the IP address is valid and FALSE otherwise. + * @returns true if the IP address is valid and false otherwise. */ bool ipIsValid( const TQString &ip ); }; @@ -240,14 +240,14 @@ class TDE_EXPORT Smb4KHostItem * This functions determines whether this host should be * registered as a master browser. * - * @param master Set this to TRUE if the host is a master browser. + * @param master Set this to true if the host is a master browser. */ void setMaster( bool master ); /** * This function tells you if the host is a master or not. * - * @returns TRUE if the host is a master browser. + * @returns true if the host is a master browser. */ const bool isMaster() const { return m_master; } @@ -269,14 +269,14 @@ class TDE_EXPORT Smb4KHostItem * This function is used to tell the host item, if a * check for the IP address has already been performed. * - * @param yes Should be set to TRUE if a check was performed. + * @param yes Should be set to true if a check was performed. */ void setIPAddressChecked( bool yes ); /** * Tells if a check for the IP address has already been performed. * - * @returns TRUE if a check was performed, and FALSE otherwise. + * @returns true if a check was performed, and false otherwise. */ const bool ipAddressChecked() const { return m_ip_checked; } @@ -284,7 +284,7 @@ class TDE_EXPORT Smb4KHostItem * This function is used to tell the host item, if a * check for the information (OS and Server string ) has already been performed. * - * @param yes Should be set to TRUE if a check was performed. + * @param yes Should be set to true if a check was performed. */ void setInfoChecked( bool yes ); @@ -292,7 +292,7 @@ class TDE_EXPORT Smb4KHostItem * Tells if a check for the information (OS and Server string) has already * been performed. * - * @returns TRUE is the check was performed previously. + * @returns true is the check was performed previously. */ const bool infoChecked() const { return m_info_checked; } @@ -347,12 +347,12 @@ class TDE_EXPORT Smb4KHostItem /** * This function checks if the IP address is valid, i.e. the - * IP address is either IP v4 or IP v6. It returns either TRUE - * or FALSE. + * IP address is either IP v4 or IP v6. It returns either true + * or false. * * @param ip The IP address that's going to be checked. * - * @returns TRUE if the IP address is valid and FALSE otherwise. + * @returns true if the IP address is valid and false otherwise. */ bool ipIsValid( const TQString &ip ); }; @@ -431,31 +431,31 @@ class TDE_EXPORT Smb4KShareItem /** * This function tells if the share is a hidden one. * - * @returns TRUE is the share is a hidden one and FALSE otherwise. + * @returns true is the share is a hidden one and false otherwise. */ bool isHidden() const; /** - * This function is TRUE if the share is a printer and - * FALSE otherwise. + * This function is true if the share is a printer and + * false otherwise. * - * @returns TRUE if the share is a printer + * @returns true if the share is a printer */ bool isPrinter() const; /** - * This function returns TRUE if the share is an IPC$ - * share and FALSE otherwise. + * This function returns true if the share is an IPC$ + * share and false otherwise. * - * @returns TRUE if the share is an IPC$ share + * @returns true if the share is an IPC$ share */ bool isIPC() const; /** - * This function returns TRUE if the share is an ADMIN$ - * share and FALSE otherwise. + * This function returns true if the share is an ADMIN$ + * share and false otherwise. * - * @returns TRUE if the share is an ADMIN$ share + * @returns true if the share is an ADMIN$ share */ bool isADMIN() const; diff --git a/smb4k/core/smb4kpasswordhandler.h b/smb4k/core/smb4kpasswordhandler.h index 07a7e3e..4d2c33b 100644 --- a/smb4k/core/smb4kpasswordhandler.h +++ b/smb4k/core/smb4kpasswordhandler.h @@ -127,7 +127,7 @@ class TDE_EXPORT Smb4KPasswordHandler : public TQObject * * @param name The name of this dialog. * - * @returns TRUE if a new password has been supplied and FALSE otherwise. + * @returns true if a new password has been supplied and false otherwise. */ bool askpass( const TQString &workgroup, const TQString &host, const TQString &share, int desc, TQWidget *parent = 0, const char *name = 0 ); @@ -174,18 +174,18 @@ class TDE_EXPORT Smb4KPasswordHandler : public TQObject enum Description{ NewData, AccessDenied, BadPassword, PermDenied, AuthError, LogonFailure, None }; /** - * This function returns TRUE if the wallet it open at the moment and FALSE + * This function returns true if the wallet it open at the moment and false * if it is closed or not used. * - * @returns TRUE if the wallet is open. + * @returns true if the wallet is open. */ bool walletIsOpen() { return (m_wallet && m_wallet->isOpen()); } /** - * This function returns TRUE if the digital wallet support has been + * This function returns true if the digital wallet support has been * disabled. This happens when the wallet could not be opened. * - * @returns TRUE if the digital wallet support has been disabled. + * @returns true if the digital wallet support has been disabled. */ bool walletSupportIsDisabled() { return m_wallet_support_disabled; } diff --git a/smb4k/core/smb4kpreviewer.h b/smb4k/core/smb4kpreviewer.h index 625bb2d..e78bcf8 100644 --- a/smb4k/core/smb4kpreviewer.h +++ b/smb4k/core/smb4kpreviewer.h @@ -79,8 +79,8 @@ class TDE_EXPORT Smb4KPreviewer : public TQObject * @param item The item for which a preview should be * requested. * - * @returns TRUE if einter the share name is not 'homes' or if it could - * successfully be set to a user name. Otherwise it returns FALSE. + * @returns true if einter the share name is not 'homes' or if it could + * successfully be set to a user name. Otherwise it returns false. */ bool preview( Smb4KPreviewItem *item ); @@ -88,7 +88,7 @@ class TDE_EXPORT Smb4KPreviewer : public TQObject * Using this function, you can find out whether the previewer is running * at the moment. * - * @returns TRUE if the previewer is running or FALSE otherwise. + * @returns true if the previewer is running or false otherwise. */ bool isRunning() { return m_working; } diff --git a/smb4k/core/smb4kpreviewitem.cpp b/smb4k/core/smb4kpreviewitem.cpp index d97a367..4764eef 100644 --- a/smb4k/core/smb4kpreviewitem.cpp +++ b/smb4k/core/smb4kpreviewitem.cpp @@ -68,7 +68,7 @@ void Smb4KPreviewItem::setPath( const TQString &path ) void Smb4KPreviewItem::addContents( const ContentsItem &item ) { - // Do not set the last argument to TRUE, because then + // Do not set the last argument to true, because then // we would be in overwrite mode. m_contents.append( item ); } diff --git a/smb4k/core/smb4kpreviewitem.h b/smb4k/core/smb4kpreviewitem.h index b464221..a56b8e0 100644 --- a/smb4k/core/smb4kpreviewitem.h +++ b/smb4k/core/smb4kpreviewitem.h @@ -205,12 +205,12 @@ class TDE_EXPORT Smb4KPreviewItem /** * This function checks if the IP address is valid, i.e. the - * IP address is either IP v4 or IP v6. It returns either TRUE - * or FALSE. + * IP address is either IP v4 or IP v6. It returns either true + * or false. * * @param ip The IP address that's going to be checked. * - * @returns TRUE if the IP address is valid and FALSE otherwise. + * @returns true if the IP address is valid and false otherwise. */ bool ipIsValid( const TQString &ip ); }; diff --git a/smb4k/core/smb4kprint.h b/smb4k/core/smb4kprint.h index 4700096..6e9b57b 100644 --- a/smb4k/core/smb4kprint.h +++ b/smb4k/core/smb4kprint.h @@ -87,10 +87,10 @@ class TDE_EXPORT Smb4KPrint : public TQObject void abort(); /** - * This function returns TRUE if the printer handler is running and - * FALSE otherwise. + * This function returns true if the printer handler is running and + * false otherwise. * - * @returns TRUE is the printer handler is running and FALSE otherwise. + * @returns true is the printer handler is running and false otherwise. */ bool isRunning() { return m_working; } @@ -138,8 +138,8 @@ class TDE_EXPORT Smb4KPrint : public TQObject TQString m_buffer; /** - * This boolean is TRUE if the printer handler is running and - * FALSE otherwise. + * This boolean is true if the printer handler is running and + * false otherwise. */ bool m_working; diff --git a/smb4k/core/smb4kprintinfo.h b/smb4k/core/smb4kprintinfo.h index 653da5f..8cf7aaa 100644 --- a/smb4k/core/smb4kprintinfo.h +++ b/smb4k/core/smb4kprintinfo.h @@ -135,12 +135,12 @@ class TDE_EXPORT Smb4KPrintInfo /** * This function checks if the IP address is valid, i.e. the - * IP address is either IP v4 or IP v6. It returns either TRUE - * or FALSE. + * IP address is either IP v4 or IP v6. It returns either true + * or false. * * @param ip The IP address that's going to be checked. * - * @returns TRUE if the IP address is valid and FALSE otherwise. + * @returns true if the IP address is valid and false otherwise. */ bool ipIsValid( const TQString &ip ); }; diff --git a/smb4k/core/smb4ksambaoptionshandler.h b/smb4k/core/smb4ksambaoptionshandler.h index 0cadd67..e21f5b7 100644 --- a/smb4k/core/smb4ksambaoptionshandler.h +++ b/smb4k/core/smb4ksambaoptionshandler.h @@ -80,14 +80,14 @@ class TDE_EXPORT Smb4KSambaOptionsHandler : public TQObject const TQValueList &customOptionsList(); /** - * This functions sets the remount flag of the share @p share to TRUE or FALSE. + * This functions sets the remount flag of the share @p share to true or false. * In case the share is not yet in the list of shares that are to be remounted, - * it will be added. If you set the remount flag to FALSE on an existing entry, + * it will be added. If you set the remount flag to false on an existing entry, * it will stay in the list even if no other custom options were defined. * * @param share The Smb4KShare object that represents the share * - * @param yes TRUE if you want the share to be remounted and FALSE + * @param yes true if you want the share to be remounted and false * otherwise */ void remount( Smb4KShare *share, bool yes ); @@ -170,7 +170,7 @@ class TDE_EXPORT Smb4KSambaOptionsHandler : public TQObject * * Please note that if the host where a share you are probing for * is located, a pointer to this *host* item will be returned unless - * you set @p exactMatch to TRUE in which case NULL is returned! If + * you set @p exactMatch to true in which case NULL is returned! If * neither the host nor the share is found, NULL is returned. * * @param item The name of the network item to find. @@ -187,7 +187,7 @@ class TDE_EXPORT Smb4KSambaOptionsHandler : public TQObject * * @param info The Smb4KSambaOptionsInfo object * - * @param sync If TRUE, the list is sync'ed with the config file. + * @param sync If true, the list is sync'ed with the config file. */ void addItem( Smb4KSambaOptionsInfo *info, bool sync ); @@ -196,7 +196,7 @@ class TDE_EXPORT Smb4KSambaOptionsHandler : public TQObject * * @param name The name of the item. * - * @param sync If TRUE, the list is sync'ed with the config file. + * @param sync If true, the list is sync'ed with the config file. */ void removeItem( const TQString &name, bool sync ); @@ -220,7 +220,7 @@ class TDE_EXPORT Smb4KSambaOptionsHandler : public TQObject * This function searches a particular network item in the list. If this item is a share * and it is not found, @p exactMatch determines if NULL is returned or if the values of * the item that matches @p item closest (i.e. the host, or another share that's located - * on the host). In most cases you want @p exactMatch to be FALSE. + * on the host). In most cases you want @p exactMatch to be false. * Please note: Do not delete the pointer that's returned by this function or you will * remove an item from the list! * diff --git a/smb4k/core/smb4ksambaoptionsinfo.h b/smb4k/core/smb4ksambaoptionsinfo.h index dfc03f3..a6de0ff 100644 --- a/smb4k/core/smb4ksambaoptionsinfo.h +++ b/smb4k/core/smb4ksambaoptionsinfo.h @@ -83,15 +83,15 @@ class TDE_EXPORT Smb4KSambaOptionsInfo /** * Sets the "should be remounted" flag. * - * @param rm TRUE if the share is to be remounted and - * FALSE otherwise. + * @param rm true if the share is to be remounted and + * false otherwise. */ void setRemount( bool rm ); /** - * Returns TRUE if the share is to be remounted and FALSE otherwise. + * Returns true if the share is to be remounted and false otherwise. * - * @returns TRUE if the share is to be remounted and FALSE otherwise + * @returns true if the share is to be remounted and false otherwise */ bool remount() const { return m_remount; } @@ -145,16 +145,16 @@ class TDE_EXPORT Smb4KSambaOptionsInfo /** * Set the 'Use Kerberos' flag. * - * @param krb TRUE if the user wants to use Kerberos - * and FALSE otherwise. + * @param krb true if the user wants to use Kerberos + * and false otherwise. */ void setKerberos( bool krb ); /** - * This functions returns TRUE if the user wants to use Kerberos and - * otherwise it returns FALSE. + * This functions returns true if the user wants to use Kerberos and + * otherwise it returns false. * - * @returns TRUE if Kerberos should be used and FALSE + * @returns true if Kerberos should be used and false * otherwise. */ bool kerberos() const { return m_kerberos; } @@ -226,17 +226,17 @@ class TDE_EXPORT Smb4KSambaOptionsInfo * * Note: This function is not available und FreeBSD. * - * @param rw TRUE if read-write and FALSE otherwise. + * @param rw true if read-write and false otherwise. */ void setWriteAccess( bool rw ); /** - * This functions returns TRUE if the user wants to mount a share read-write - * otherwise it returns FALSE. + * This functions returns true if the user wants to mount a share read-write + * otherwise it returns false. * * Note: This function is not available und FreeBSD. * - * @returns TRUE if read-write and FALSE otherwise. + * @returns true if read-write and false otherwise. */ bool writeAccess() const { return m_write_access; } #endif diff --git a/smb4k/core/smb4kscanner.h b/smb4k/core/smb4kscanner.h index 2ba2e22..2fbd5b6 100644 --- a/smb4k/core/smb4kscanner.h +++ b/smb4k/core/smb4kscanner.h @@ -172,7 +172,7 @@ class TDE_EXPORT Smb4KScanner : public TQObject /** * This function reports if the scanner is running or not. * - * @returns TRUE if the scanner is running and FALSE otherwise. + * @returns true if the scanner is running and false otherwise. */ bool isRunning() { return m_working; } diff --git a/smb4k/core/smb4kshare.h b/smb4k/core/smb4kshare.h index 52dc04f..2e549e0 100644 --- a/smb4k/core/smb4kshare.h +++ b/smb4k/core/smb4kshare.h @@ -124,7 +124,7 @@ class TDE_EXPORT Smb4KShare /** * This function returns the canonical path of the share. In contrast to * Smb4KShare::path(), it will return the absolute path without symlinks. However, - * should the share be broken (i.e. Smb4KShare::isBroken() returns TRUE), + * should the share be broken (i.e. Smb4KShare::isBroken() returns true), * only Smb4KShare::path() is returned. * * @returns Returns the canonical path of the share. @@ -176,29 +176,29 @@ class TDE_EXPORT Smb4KShare const TQString &cifsLogin() const; /** - * Is TRUE if the share is/seems to be mounted by another + * Is true if the share is/seems to be mounted by another * user. * - * @returns TRUE if another user mounted the share and FALSE otherwise. + * @returns true if another user mounted the share and false otherwise. */ bool isForeign() const; /** * This function sets the share to be foreign. * - * @param foreign TRUE if share is foreign and FALSE otherwise. + * @param foreign true if share is foreign and false otherwise. */ void setForeign( bool foreign ); /** - * Returns TRUE if the share is broken and FALSE otherwise. + * Returns true if the share is broken and false otherwise. */ bool isBroken() const; /** * Sets the share to be broken. * - * @param broken TRUE if the share is broken and FALSE otherwise. + * @param broken true if the share is broken and false otherwise. */ void setBroken( bool broken ); @@ -243,12 +243,12 @@ class TDE_EXPORT Smb4KShare double percentage() const; /** - * Compare another Smb4KShare object with this one and return TRUE if both + * Compare another Smb4KShare object with this one and return true if both * carry the same data. * * @param share The Smb4KShare object that is compared to this one * - * @returns TRUE if the values match. + * @returns true if the values match. */ bool equals( const Smb4KShare &share ); diff --git a/smb4k/core/smb4ksynchronizer.h b/smb4k/core/smb4ksynchronizer.h index 1d8d65b..a89a4ba 100644 --- a/smb4k/core/smb4ksynchronizer.h +++ b/smb4k/core/smb4ksynchronizer.h @@ -84,7 +84,7 @@ class TDE_EXPORT Smb4KSynchronizer : public TQObject /** * This function reports if the synchronizer is running or not. * - * @returns TRUE if the synchronizer is running an FALSE otherwise. + * @returns true if the synchronizer is running an false otherwise. */ bool isRunning() { return m_working; } @@ -168,7 +168,7 @@ class TDE_EXPORT Smb4KSynchronizer : public TQObject TDEProcess *m_proc; /** - * This booian is TRUE if the synchronizer is working and FALSE otherwise. + * This booian is true if the synchronizer is working and false otherwise. */ bool m_working; diff --git a/smb4k/core/smb4tdefileio.h b/smb4k/core/smb4tdefileio.h index cf05530..af42c69 100644 --- a/smb4k/core/smb4tdefileio.h +++ b/smb4k/core/smb4tdefileio.h @@ -78,9 +78,9 @@ class TDE_EXPORT Smb4KFileIO : public TQObject * * @param operation Defines whether entries should be inserted or if * they should be removed. With Smb4KFileIO::NoOperation - * the function exits immediately and returns TRUE. + * the function exits immediately and returns true. * - * @returns TRUE if the write process was successfully initiate and FALSE + * @returns true if the write process was successfully initiate and false * otherwise. * * @note You need to connect to the finished() and failed() signals to find @@ -94,9 +94,9 @@ class TDE_EXPORT Smb4KFileIO : public TQObject * * @param operation Defines whether entries should be inserted or if * they should be removed. With Smb4KFileIO::NoOperation - * the function exits immediately and returns TRUE. + * the function exits immediately and returns true. * - * @returns TRUE if the write process was successfully initiate and FALSE + * @returns true if the write process was successfully initiate and false * otherwise. * * @note You need to connect to the finished() and failed() signals to find @@ -160,14 +160,14 @@ class TDE_EXPORT Smb4KFileIO : public TQObject * This function creates a lock file in /tmp if it does not * exist already. If the user is not allowed to write to the * desired file a the moment, the user will be shown an error - * dialog and the function will return FALSE. + * dialog and the function will return false. * * Checks are performed to make sure it is save to write to an * existing lock file using the system call lstat(). * * @param filename The name of the file that is to be modified. * - * @returns TRUE if the creation was successful and FALSE if + * @returns true if the creation was successful and false if * something went wrong. */ bool createLockFile( const TQString &filename ); @@ -179,11 +179,11 @@ class TDE_EXPORT Smb4KFileIO : public TQObject * Checks are performed to make sure it is save to write to an * existing lock file using the system call lstat(). * - * @param shutdown Should be set to FALSE if you do not want to have + * @param shutdown Should be set to false if you do not want to have * any error message shown. Otherwise you should set it - * to TRUE. + * to true. * - * @returns TRUE if the removal was successful and FALSE if + * @returns true if the removal was successful and false if * something went wrong. */ bool removeLockFile( const bool error_message = true ); diff --git a/smb4k/dialogs/smb4kcustomoptionsdialog.h b/smb4k/dialogs/smb4kcustomoptionsdialog.h index cdf09a0..66dd72b 100644 --- a/smb4k/dialogs/smb4kcustomoptionsdialog.h +++ b/smb4k/dialogs/smb4kcustomoptionsdialog.h @@ -79,12 +79,12 @@ class TDE_EXPORT Smb4KCustomOptionsDialog : public KDialogBase ~Smb4KCustomOptionsDialog(); /** - * This function returns TRUE if the dialog has been initialized correctly - * and may be shown now. It will always return TRUE if you want to set options + * This function returns true if the dialog has been initialized correctly + * and may be shown now. It will always return true if you want to set options * for a server or for a share, that is not a 'homes' share. Only in the case - * of a homes share it may return FALSE, if you didn't choose a user name. + * of a homes share it may return false, if you didn't choose a user name. * - * @returns TRUE if the dialog has been set up correctly. + * @returns true if the dialog has been set up correctly. */ bool isInitialized() { return m_initialized; } @@ -114,8 +114,8 @@ class TDE_EXPORT Smb4KCustomOptionsDialog : public KDialogBase * Is invoked when the user clicked the 'Use Kerberos' * check box. * - * @param on TRUE if the check box was - * checked and FALSE otherwise + * @param on true if the check box was + * checked and false otherwise */ void slotKerberosToggled( bool on ); @@ -201,7 +201,7 @@ class TDE_EXPORT Smb4KCustomOptionsDialog : public KDialogBase KComboBox *m_proto_input; /** - * Boolean that is TRUE if the dialog has been initialized + * Boolean that is true if the dialog has been initialized * correctly and my be shown now. */ bool m_initialized; diff --git a/smb4k/dialogs/smb4kpreviewdialog.h b/smb4k/dialogs/smb4kpreviewdialog.h index f387a48..6518901 100644 --- a/smb4k/dialogs/smb4kpreviewdialog.h +++ b/smb4k/dialogs/smb4kpreviewdialog.h @@ -76,10 +76,10 @@ class TDE_EXPORT Smb4KPreviewDialog : public KDialogBase ~Smb4KPreviewDialog(); /** - * This function returns TRUE if the preview dialog has been - * initialized correctly and FALSE otherwise. + * This function returns true if the preview dialog has been + * initialized correctly and false otherwise. * - * @returns TRUE if the dialog was initialized correctly. + * @returns true if the dialog was initialized correctly. */ bool isInitialized() { return m_initialized; } @@ -161,8 +161,8 @@ class TDE_EXPORT Smb4KPreviewDialog : public KDialogBase TQStringList::Iterator m_current_item; /** - * TRUE if the dialog was successfully initilized and - * FALSE otherwise. + * true if the dialog was successfully initilized and + * false otherwise. */ bool m_initialized; }; diff --git a/smb4k/iconview/smb4ksharesiconviewitem.h b/smb4k/iconview/smb4ksharesiconviewitem.h index a85798f..64d2be4 100644 --- a/smb4k/iconview/smb4ksharesiconviewitem.h +++ b/smb4k/iconview/smb4ksharesiconviewitem.h @@ -60,7 +60,7 @@ class Smb4KSharesIconViewItem : public TDEIconViewItem * @param share The Smb4KShare object that represents the share. * * @param mountpoint Tells the item if the mount point instead of the - * share name should be shown. Default is FALSE. + * share name should be shown. Default is false. * * @param parent The parent widget of this item. */ @@ -75,11 +75,11 @@ class Smb4KSharesIconViewItem : public TDEIconViewItem /** * This function compares the encapsulated Smb4KShare object with @p item - * and returns TRUE if they contain equal values. + * and returns true if they contain equal values. * * @param item A Smb4KShare object that should be compared * - * @returns TRUE if @p item has the same values stored as the + * @returns true if @p item has the same values stored as the * encapsulated Smb4KShare object. */ bool sameShareObject( Smb4KShare *share ); @@ -112,7 +112,7 @@ class Smb4KSharesIconViewItem : public TDEIconViewItem * Reimplemented from TQIconViewItem. * * This function paints the icon text and uses Smb4KShare::isForeign() to - * determine the color (TRUE: gray, FALSE: the default color). + * determine the color (true: gray, false: the default color). * * @param p The painter * @@ -136,7 +136,7 @@ class Smb4KSharesIconViewItem : public TDEIconViewItem * * @param share The Smb4KShare object. * - * @param mountpoint If TRUE, the mount point will be shown instead of the + * @param mountpoint If true, the mount point will be shown instead of the * share name. */ void setupItem( const Smb4KShare &share, diff --git a/smb4k/listview/smb4kshareslistviewitem.h b/smb4k/listview/smb4kshareslistviewitem.h index 0bece63..33cea00 100644 --- a/smb4k/listview/smb4kshareslistviewitem.h +++ b/smb4k/listview/smb4kshareslistviewitem.h @@ -60,7 +60,7 @@ class Smb4KSharesListViewItem : public TDEListViewItem * @param share The Smb4KShare object that represents the share. * * @param mountpoint Tells the item if the mount point instead of the - * share name should be shown. Default is FALSE. + * share name should be shown. Default is false. * * @param parent The parent widget of this item. */ @@ -75,11 +75,11 @@ class Smb4KSharesListViewItem : public TDEListViewItem /** * This function compares the encapsulated Smb4KShare object with @p item - * and returns TRUE if they contain equal values. + * and returns true if they contain equal values. * * @param item A Smb4KShare object that should be compared * - * @returns TRUE if @p item has the same values stored as the + * @returns true if @p item has the same values stored as the * encapsulated Smb4KShare object. */ bool sameShareObject( Smb4KShare *share ); @@ -134,7 +134,7 @@ class Smb4KSharesListViewItem : public TDEListViewItem * Reimplemented from TDEListViewItem. * * This function paints the icon text and the usage. It uses Smb4KShare::isForeign() to - * determine the color of the icon text (TRUE: gray, FALSE: the default color). + * determine the color of the icon text (true: gray, false: the default color). * * @param p The painter * @@ -167,7 +167,7 @@ class Smb4KSharesListViewItem : public TDEListViewItem * * @param share The Smb4KShare object. * - * @param mountpoint If TRUE, the mount point will be shown instead of the + * @param mountpoint If true, the mount point will be shown instead of the * share name. */ void setupItem( const Smb4KShare &share, diff --git a/smb4k/searchdlg/smb4ksearchdialogitem.h b/smb4k/searchdlg/smb4ksearchdialogitem.h index 75449a1..463caa5 100644 --- a/smb4k/searchdlg/smb4ksearchdialogitem.h +++ b/smb4k/searchdlg/smb4ksearchdialogitem.h @@ -83,11 +83,11 @@ class Smb4KSearchDialogItem : public TDEListViewItem Smb4KHostItem *hostItem() { return &m_item; } /** - * This function returns TRUE, if the item is regular, that means it + * This function returns true, if the item is regular, that means it * represents a host. If it represents a failed search, it returns - * FALSE. + * false. * - * @returns TRUE is the item is a regular one. + * @returns true is the item is a regular one. */ bool isRegular() { return m_is_regular; } @@ -96,14 +96,14 @@ class Smb4KSearchDialogItem : public TDEListViewItem * known to the application, i.e. it is in the list of hosts. It will set * the pixmap accordingly and sets m_is_known. * - * @param known Should be TRUE is the host is known. + * @param known Should be true is the host is known. */ void setKnown( bool known ); /** - * This function returns TRUE, if the item is already known by the scanner. + * This function returns true, if the item is already known by the scanner. * - * @returns TRUE is the item is already known. + * @returns true is the item is already known. */ bool isKnown() { return m_is_known; } @@ -116,7 +116,7 @@ class Smb4KSearchDialogItem : public TDEListViewItem /** * Reimplemented from TQListViewItem. It is used for sorting and compares the - * serial numbers of this item and @p item. If @p ascending is TRUE and the + * serial numbers of this item and @p item. If @p ascending is true and the * serial number of this item is greater than that of @p item, it will be inserted * before @p item and else it will be inserted after. In this implementation, * @p col is *not* used. @@ -126,7 +126,7 @@ class Smb4KSearchDialogItem : public TDEListViewItem * @param col The column that should be used for sorting. It is * not used in this implementation. * - * @param ascending Sort ascending if TRUE or descending if FALSE. + * @param ascending Sort ascending if true or descending if false. * * @returns 0 if serialNumber() and @p item->serialNumber() are equal and != 0 if * they are not. Which value and especially which algebraic sign is returned depends @@ -141,12 +141,12 @@ class Smb4KSearchDialogItem : public TDEListViewItem Smb4KHostItem m_item; /** - * TRUE, if we have a regular item + * true, if we have a regular item */ bool m_is_regular; /** - * TRUE is the item is known + * true is the item is known */ bool m_is_known; diff --git a/smb4k/smb4ksystemtray.h b/smb4k/smb4ksystemtray.h index 9f59599..d09cb0b 100644 --- a/smb4k/smb4ksystemtray.h +++ b/smb4k/smb4ksystemtray.h @@ -56,19 +56,19 @@ class Smb4KSystemTray : public KSystemTray /** * Embeds the system tray window into the system tray, if @p ebd is - * TRUE. Otherwise, it removes it from there. Note, that the system tray + * true. Otherwise, it removes it from there. Note, that the system tray * icon won't be deleted but only hidden! * - * @param ebd If TRUE the system tray icon will be embedded into + * @param ebd If true the system tray icon will be embedded into * the system tray. */ void embed( bool ebd ); /** - * This function returns TRUE if the system tray window is embedded into - * the system tray and FALSE otherwise. + * This function returns true if the system tray window is embedded into + * the system tray and false otherwise. * - * @returns TRUE if the system tray window is embedded. + * @returns true if the system tray window is embedded. */ bool isEmbedded() { return isShown(); } diff --git a/utilities/smb4k_umount.cpp b/utilities/smb4k_umount.cpp index 0fea963..550544a 100644 --- a/utilities/smb4k_umount.cpp +++ b/utilities/smb4k_umount.cpp @@ -156,12 +156,12 @@ bool check_filesystem( const char *path, const char *fs ) if ( err_code != EIO && err_code != EACCES ) { - // ok is still FALSE + // ok is still false cerr << "smb4k_umount: " << strerror( err_code ) << endl; } else { - ok = true; // Bypass the check below, because it would yield ok == FALSE + ok = true; // Bypass the check below, because it would yield ok == false // and we want to be able to unmount broken shares as well. } @@ -204,7 +204,7 @@ bool check_filesystem( const char *path, const char *fs ) #endif else { - // ok is still FALSE. + // ok is still false. cerr << "smb4k_umount: Wrong file system specified" << endl; }