Replace TRUE/FALSE with boolean values true/false

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/32/head
Michele Calgaro 3 months ago
parent 0150a6d40d
commit ceb2c2e93f
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -67,9 +67,9 @@ KonqSidebar_Smb4K::KonqSidebar_Smb4K(TDEInstance *inst,TQObject *parent,TQWidget
TDEToolBar *topBar = new TDEToolBar( widget, "Topbar" ); TDEToolBar *topBar = new TDEToolBar( widget, "Topbar" );
topBar->setIconSize(16); topBar->setIconSize(16);
topBar->insertButton( "reload", 0, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slotRescan() ) , TRUE, i18n( "Scan Network" ) ); 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( "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( "configure", 2, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slotSmb4KOptionsDlg() ) , true, i18n( "Configure" ) );
// //
// Browser widget: // Browser widget:

@ -80,11 +80,11 @@ class Smb4KNetworkBrowser : public TDEListView
Smb4KNetworkBrowserToolTip *tooltip() { return m_tooltip; } 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 * 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. * of tool tips.
*/ */
void blockToolTips( bool block ); void blockToolTips( bool block );

@ -139,10 +139,10 @@ class Smb4KNetworkBrowserItem : public TDEListViewItem
void update( Smb4KShareItem *item ); void update( Smb4KShareItem *item );
/** /**
* This is a convenience function. It returns TRUE if the item is a * This is a convenience function. It returns true if the item is a
* printer share and FALSE otherwise. * 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(); bool isPrinter();
@ -151,15 +151,15 @@ class Smb4KNetworkBrowserItem : public TDEListViewItem
* changed by this function and the item text will be set to italic by * changed by this function and the item text will be set to italic by
* Smb4KNetworkBrowserItem::paintCell(). * 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 ); void setMounted( bool mounted = true );
/** /**
* Tells whether the respective share is shown as mounted or not. For non-share * 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(); bool isMounted();

@ -145,7 +145,7 @@ class Smb4TDEConfigDialog : public TDEConfigDialog
/** /**
* Write super user configuration entries to configuration file. * 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(); bool writeSuperUserEntries();
@ -159,7 +159,7 @@ class Smb4TDEConfigDialog : public TDEConfigDialog
* need it. This function will report all missing input to the user * need it. This function will report all missing input to the user
* via a message box. * 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(); bool checkSettings();
}; };

@ -66,7 +66,7 @@ class Smb4KRsyncOptions : public TQTabWidget
* This slot is invoked if the "Archive mode" checkbox has been * This slot is invoked if the "Archive mode" checkbox has been
* toggled. * 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 ); void slotArchiveToggled( bool on );
@ -74,8 +74,8 @@ class Smb4KRsyncOptions : public TQTabWidget
* This slot is invoked if the --archive option has to be switched * This slot is invoked if the --archive option has to be switched
* off. * off.
* *
* @param on Is FALSE if one of the connected checkboxes is unchecked * @param on Is false if one of the connected checkboxes is unchecked
* and TRUE otherwise. * and true otherwise.
*/ */
void slotUncheckArchive( bool on ); void slotUncheckArchive( bool on );
@ -84,8 +84,8 @@ class Smb4KRsyncOptions : public TQTabWidget
* It enables/disables all other backup options according to the * It enables/disables all other backup options according to the
* state the backup button is in. * state the backup button is in.
* *
* @param on Is TRUE if the m_backup check box has been * @param on Is true if the m_backup check box has been
* checked and FALSE otherwise. * checked and false otherwise.
*/ */
void slotBackupToggled( bool on ); void slotBackupToggled( bool on );
@ -93,7 +93,7 @@ class Smb4KRsyncOptions : public TQTabWidget
* This slot is called if the '-F' shortcut has been toggled. * This slot is called if the '-F' shortcut has been toggled.
* It unchecks the '-F -F' shortcut. * 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 ); void slotFShortcutToggled( bool on );
@ -101,7 +101,7 @@ class Smb4KRsyncOptions : public TQTabWidget
* This slot is called if the '-F -F' shortcut has been toggled. * This slot is called if the '-F -F' shortcut has been toggled.
* It unchecks the '-F' shortcut. * 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 ); void slotFFShortcutToggled( bool on );
}; };

@ -201,12 +201,12 @@ class TDE_EXPORT Smb4KBookmark
/** /**
* This function checks if the IP address is valid, i.e. the * 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 * IP address is either IP v4 or IP v6. It returns either true
* or FALSE. * or false.
* *
* @param ip The IP address that's going to be checked. * @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 ); bool ipIsValid( const TQString &ip );
}; };

@ -89,7 +89,7 @@ class TDE_EXPORT Smb4KCore : public TQObject
static int scannerState() { return self()->m_scanner_state; } 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(); } 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; } 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(); } 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; } 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(); } 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; } 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(); } 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(); static bool isRunning();

@ -85,7 +85,7 @@ class TDE_EXPORT Smb4KMounter : public TQObject
/** /**
* Unmounts a share. This can either be done the "normal" way, or you may * 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 * a lazy unmount will be initiated. With the parameter @p noMessage you can
* suppress any error messages. * suppress any error messages.
* *
@ -94,7 +94,7 @@ class TDE_EXPORT Smb4KMounter : public TQObject
* @param force Force the unmounting of the share. * @param force Force the unmounting of the share.
* *
* @param noMessage Determines whether this function should emit an error code in case of an error. * @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 ); void unmountShare( Smb4KShare *share, bool force = false, bool noMessage = false );
@ -136,23 +136,23 @@ class TDE_EXPORT Smb4KMounter : public TQObject
TQValueList<Smb4KShare> findShareByName( const TQString &name ); TQValueList<Smb4KShare> 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: * @param name The name of the share. It has to look like this:
* //HOST/SHARE. * //HOST/SHARE.
* *
* @param userOnly Specifies whether this function should only consider * @param userOnly Specifies whether this function should only consider
* shares mounted by the user or all shares that are * 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 ); bool isMounted( const TQString &name, bool userOnly = true );
/** /**
* This function reports if the mounter is running or not. * 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; } bool isRunning() { return m_working; }

@ -95,7 +95,7 @@ class TDE_EXPORT Smb4KWorkgroupItem
void setPseudoMaster(); 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. * for further information.
*/ */
bool hasPseudoMaster() const { return m_pseudo; } 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 * 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 * IP address is either IP v4 or IP v6. It returns either true
* or FALSE. * or false.
* *
* @param ip The IP address that's going to be checked. * @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 ); bool ipIsValid( const TQString &ip );
}; };
@ -240,14 +240,14 @@ class TDE_EXPORT Smb4KHostItem
* This functions determines whether this host should be * This functions determines whether this host should be
* registered as a master browser. * 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 ); void setMaster( bool master );
/** /**
* This function tells you if the host is a master or not. * 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; } 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 * This function is used to tell the host item, if a
* check for the IP address has already been performed. * 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 ); void setIPAddressChecked( bool yes );
/** /**
* Tells if a check for the IP address has already been performed. * 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; } 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 * This function is used to tell the host item, if a
* check for the information (OS and Server string ) has already been performed. * 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 ); 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 * Tells if a check for the information (OS and Server string) has already
* been performed. * 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; } 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 * 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 * IP address is either IP v4 or IP v6. It returns either true
* or FALSE. * or false.
* *
* @param ip The IP address that's going to be checked. * @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 ); bool ipIsValid( const TQString &ip );
}; };
@ -431,31 +431,31 @@ class TDE_EXPORT Smb4KShareItem
/** /**
* This function tells if the share is a hidden one. * 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; bool isHidden() const;
/** /**
* This function is TRUE if the share is a printer and * This function is true if the share is a printer and
* FALSE otherwise. * false otherwise.
* *
* @returns TRUE if the share is a printer * @returns true if the share is a printer
*/ */
bool isPrinter() const; bool isPrinter() const;
/** /**
* This function returns TRUE if the share is an IPC$ * This function returns true if the share is an IPC$
* share and FALSE otherwise. * 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; bool isIPC() const;
/** /**
* This function returns TRUE if the share is an ADMIN$ * This function returns true if the share is an ADMIN$
* share and FALSE otherwise. * 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; bool isADMIN() const;

@ -127,7 +127,7 @@ class TDE_EXPORT Smb4KPasswordHandler : public TQObject
* *
* @param name The name of this dialog. * @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 ); 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 }; 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. * 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()); } 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. * 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; } bool walletSupportIsDisabled() { return m_wallet_support_disabled; }

@ -79,8 +79,8 @@ class TDE_EXPORT Smb4KPreviewer : public TQObject
* @param item The item for which a preview should be * @param item The item for which a preview should be
* requested. * requested.
* *
* @returns TRUE if einter the share name is not 'homes' or if it could * @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. * successfully be set to a user name. Otherwise it returns false.
*/ */
bool preview( Smb4KPreviewItem *item ); 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 * Using this function, you can find out whether the previewer is running
* at the moment. * 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; } bool isRunning() { return m_working; }

@ -68,7 +68,7 @@ void Smb4KPreviewItem::setPath( const TQString &path )
void Smb4KPreviewItem::addContents( const ContentsItem &item ) 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. // we would be in overwrite mode.
m_contents.append( item ); m_contents.append( item );
} }

@ -205,12 +205,12 @@ class TDE_EXPORT Smb4KPreviewItem
/** /**
* This function checks if the IP address is valid, i.e. the * 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 * IP address is either IP v4 or IP v6. It returns either true
* or FALSE. * or false.
* *
* @param ip The IP address that's going to be checked. * @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 ); bool ipIsValid( const TQString &ip );
}; };

@ -87,10 +87,10 @@ class TDE_EXPORT Smb4KPrint : public TQObject
void abort(); void abort();
/** /**
* This function returns TRUE if the printer handler is running and * This function returns true if the printer handler is running and
* FALSE otherwise. * 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; } bool isRunning() { return m_working; }
@ -138,8 +138,8 @@ class TDE_EXPORT Smb4KPrint : public TQObject
TQString m_buffer; TQString m_buffer;
/** /**
* This boolean is TRUE if the printer handler is running and * This boolean is true if the printer handler is running and
* FALSE otherwise. * false otherwise.
*/ */
bool m_working; bool m_working;

@ -135,12 +135,12 @@ class TDE_EXPORT Smb4KPrintInfo
/** /**
* This function checks if the IP address is valid, i.e. the * 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 * IP address is either IP v4 or IP v6. It returns either true
* or FALSE. * or false.
* *
* @param ip The IP address that's going to be checked. * @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 ); bool ipIsValid( const TQString &ip );
}; };

@ -80,14 +80,14 @@ class TDE_EXPORT Smb4KSambaOptionsHandler : public TQObject
const TQValueList<Smb4KSambaOptionsInfo *> &customOptionsList(); const TQValueList<Smb4KSambaOptionsInfo *> &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, * 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. * it will stay in the list even if no other custom options were defined.
* *
* @param share The Smb4KShare object that represents the share * @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 * otherwise
*/ */
void remount( Smb4KShare *share, bool yes ); 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 * 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 * 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. * neither the host nor the share is found, NULL is returned.
* *
* @param item The name of the network item to find. * @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 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 ); void addItem( Smb4KSambaOptionsInfo *info, bool sync );
@ -196,7 +196,7 @@ class TDE_EXPORT Smb4KSambaOptionsHandler : public TQObject
* *
* @param name The name of the item. * @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 ); 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 * 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 * 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 * 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 * Please note: Do not delete the pointer that's returned by this function or you will
* remove an item from the list! * remove an item from the list!
* *

@ -83,15 +83,15 @@ class TDE_EXPORT Smb4KSambaOptionsInfo
/** /**
* Sets the "should be remounted" flag. * Sets the "should be remounted" flag.
* *
* @param rm TRUE if the share is to be remounted and * @param rm true if the share is to be remounted and
* FALSE otherwise. * false otherwise.
*/ */
void setRemount( bool rm ); 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; } bool remount() const { return m_remount; }
@ -145,16 +145,16 @@ class TDE_EXPORT Smb4KSambaOptionsInfo
/** /**
* Set the 'Use Kerberos' flag. * Set the 'Use Kerberos' flag.
* *
* @param krb TRUE if the user wants to use Kerberos * @param krb true if the user wants to use Kerberos
* and FALSE otherwise. * and false otherwise.
*/ */
void setKerberos( bool krb ); void setKerberos( bool krb );
/** /**
* This functions returns TRUE if the user wants to use Kerberos and * This functions returns true if the user wants to use Kerberos and
* otherwise it returns FALSE. * otherwise it returns false.
* *
* @returns TRUE if Kerberos should be used and FALSE * @returns true if Kerberos should be used and false
* otherwise. * otherwise.
*/ */
bool kerberos() const { return m_kerberos; } bool kerberos() const { return m_kerberos; }
@ -226,17 +226,17 @@ class TDE_EXPORT Smb4KSambaOptionsInfo
* *
* Note: This function is not available und FreeBSD. * 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 ); void setWriteAccess( bool rw );
/** /**
* This functions returns TRUE if the user wants to mount a share read-write * This functions returns true if the user wants to mount a share read-write
* otherwise it returns FALSE. * otherwise it returns false.
* *
* Note: This function is not available und FreeBSD. * 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; } bool writeAccess() const { return m_write_access; }
#endif #endif

@ -172,7 +172,7 @@ class TDE_EXPORT Smb4KScanner : public TQObject
/** /**
* This function reports if the scanner is running or not. * 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; } bool isRunning() { return m_working; }

@ -124,7 +124,7 @@ class TDE_EXPORT Smb4KShare
/** /**
* This function returns the canonical path of the share. In contrast to * This function returns the canonical path of the share. In contrast to
* Smb4KShare::path(), it will return the absolute path without symlinks. However, * 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. * only Smb4KShare::path() is returned.
* *
* @returns Returns the canonical path of the share. * @returns Returns the canonical path of the share.
@ -176,29 +176,29 @@ class TDE_EXPORT Smb4KShare
const TQString &cifsLogin() const; 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. * 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; bool isForeign() const;
/** /**
* This function sets the share to be foreign. * 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 ); 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; bool isBroken() const;
/** /**
* Sets the share to be broken. * 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 ); void setBroken( bool broken );
@ -243,12 +243,12 @@ class TDE_EXPORT Smb4KShare
double percentage() const; 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. * carry the same data.
* *
* @param share The Smb4KShare object that is compared to this one * @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 ); bool equals( const Smb4KShare &share );

@ -84,7 +84,7 @@ class TDE_EXPORT Smb4KSynchronizer : public TQObject
/** /**
* This function reports if the synchronizer is running or not. * 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; } bool isRunning() { return m_working; }
@ -168,7 +168,7 @@ class TDE_EXPORT Smb4KSynchronizer : public TQObject
TDEProcess *m_proc; 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; bool m_working;

@ -78,9 +78,9 @@ class TDE_EXPORT Smb4KFileIO : public TQObject
* *
* @param operation Defines whether entries should be inserted or if * @param operation Defines whether entries should be inserted or if
* they should be removed. With Smb4KFileIO::NoOperation * 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. * otherwise.
* *
* @note You need to connect to the finished() and failed() signals to find * @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 * @param operation Defines whether entries should be inserted or if
* they should be removed. With Smb4KFileIO::NoOperation * 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. * otherwise.
* *
* @note You need to connect to the finished() and failed() signals to find * @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 * This function creates a lock file in /tmp if it does not
* exist already. If the user is not allowed to write to the * exist already. If the user is not allowed to write to the
* desired file a the moment, the user will be shown an error * 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 * Checks are performed to make sure it is save to write to an
* existing lock file using the system call lstat(). * existing lock file using the system call lstat().
* *
* @param filename The name of the file that is to be modified. * @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. * something went wrong.
*/ */
bool createLockFile( const TQString &filename ); 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 * Checks are performed to make sure it is save to write to an
* existing lock file using the system call lstat(). * 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 * 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. * something went wrong.
*/ */
bool removeLockFile( const bool error_message = true ); bool removeLockFile( const bool error_message = true );

@ -79,12 +79,12 @@ class TDE_EXPORT Smb4KCustomOptionsDialog : public KDialogBase
~Smb4KCustomOptionsDialog(); ~Smb4KCustomOptionsDialog();
/** /**
* This function returns TRUE if the dialog has been initialized correctly * 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 * 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 * 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; } bool isInitialized() { return m_initialized; }
@ -114,8 +114,8 @@ class TDE_EXPORT Smb4KCustomOptionsDialog : public KDialogBase
* Is invoked when the user clicked the 'Use Kerberos' * Is invoked when the user clicked the 'Use Kerberos'
* check box. * check box.
* *
* @param on TRUE if the check box was * @param on true if the check box was
* checked and FALSE otherwise * checked and false otherwise
*/ */
void slotKerberosToggled( bool on ); void slotKerberosToggled( bool on );
@ -201,7 +201,7 @@ class TDE_EXPORT Smb4KCustomOptionsDialog : public KDialogBase
KComboBox *m_proto_input; 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. * correctly and my be shown now.
*/ */
bool m_initialized; bool m_initialized;

@ -76,10 +76,10 @@ class TDE_EXPORT Smb4KPreviewDialog : public KDialogBase
~Smb4KPreviewDialog(); ~Smb4KPreviewDialog();
/** /**
* This function returns TRUE if the preview dialog has been * This function returns true if the preview dialog has been
* initialized correctly and FALSE otherwise. * 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; } bool isInitialized() { return m_initialized; }
@ -161,8 +161,8 @@ class TDE_EXPORT Smb4KPreviewDialog : public KDialogBase
TQStringList::Iterator m_current_item; TQStringList::Iterator m_current_item;
/** /**
* TRUE if the dialog was successfully initilized and * true if the dialog was successfully initilized and
* FALSE otherwise. * false otherwise.
*/ */
bool m_initialized; bool m_initialized;
}; };

@ -60,7 +60,7 @@ class Smb4KSharesIconViewItem : public TDEIconViewItem
* @param share The Smb4KShare object that represents the share. * @param share The Smb4KShare object that represents the share.
* *
* @param mountpoint Tells the item if the mount point instead of the * @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. * @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 * 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 * @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. * encapsulated Smb4KShare object.
*/ */
bool sameShareObject( Smb4KShare *share ); bool sameShareObject( Smb4KShare *share );
@ -112,7 +112,7 @@ class Smb4KSharesIconViewItem : public TDEIconViewItem
* Reimplemented from TQIconViewItem. * Reimplemented from TQIconViewItem.
* *
* This function paints the icon text and uses Smb4KShare::isForeign() to * 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 * @param p The painter
* *
@ -136,7 +136,7 @@ class Smb4KSharesIconViewItem : public TDEIconViewItem
* *
* @param share The Smb4KShare object. * @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. * share name.
*/ */
void setupItem( const Smb4KShare &share, void setupItem( const Smb4KShare &share,

@ -60,7 +60,7 @@ class Smb4KSharesListViewItem : public TDEListViewItem
* @param share The Smb4KShare object that represents the share. * @param share The Smb4KShare object that represents the share.
* *
* @param mountpoint Tells the item if the mount point instead of the * @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. * @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 * 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 * @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. * encapsulated Smb4KShare object.
*/ */
bool sameShareObject( Smb4KShare *share ); bool sameShareObject( Smb4KShare *share );
@ -134,7 +134,7 @@ class Smb4KSharesListViewItem : public TDEListViewItem
* Reimplemented from TDEListViewItem. * Reimplemented from TDEListViewItem.
* *
* This function paints the icon text and the usage. It uses Smb4KShare::isForeign() to * 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 * @param p The painter
* *
@ -167,7 +167,7 @@ class Smb4KSharesListViewItem : public TDEListViewItem
* *
* @param share The Smb4KShare object. * @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. * share name.
*/ */
void setupItem( const Smb4KShare &share, void setupItem( const Smb4KShare &share,

@ -83,11 +83,11 @@ class Smb4KSearchDialogItem : public TDEListViewItem
Smb4KHostItem *hostItem() { return &m_item; } 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 * 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; } 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 * known to the application, i.e. it is in the list of hosts. It will set
* the pixmap accordingly and sets m_is_known. * 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 ); 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; } 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 * 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 * 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, * before @p item and else it will be inserted after. In this implementation,
* @p col is *not* used. * @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 * @param col The column that should be used for sorting. It is
* not used in this implementation. * 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 * @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 * they are not. Which value and especially which algebraic sign is returned depends
@ -141,12 +141,12 @@ class Smb4KSearchDialogItem : public TDEListViewItem
Smb4KHostItem m_item; Smb4KHostItem m_item;
/** /**
* TRUE, if we have a regular item * true, if we have a regular item
*/ */
bool m_is_regular; bool m_is_regular;
/** /**
* TRUE is the item is known * true is the item is known
*/ */
bool m_is_known; bool m_is_known;

@ -56,19 +56,19 @@ class Smb4KSystemTray : public KSystemTray
/** /**
* Embeds the system tray window into the system tray, if @p ebd is * 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! * 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. * the system tray.
*/ */
void embed( bool ebd ); void embed( bool ebd );
/** /**
* This function returns TRUE if the system tray window is embedded into * This function returns true if the system tray window is embedded into
* the system tray and FALSE otherwise. * 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(); } bool isEmbedded() { return isShown(); }

@ -156,12 +156,12 @@ bool check_filesystem( const char *path, const char *fs )
if ( err_code != EIO && err_code != EACCES ) if ( err_code != EIO && err_code != EACCES )
{ {
// ok is still FALSE // ok is still false
cerr << "smb4k_umount: " << strerror( err_code ) << endl; cerr << "smb4k_umount: " << strerror( err_code ) << endl;
} }
else 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. // 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 #endif
else else
{ {
// ok is still FALSE. // ok is still false.
cerr << "smb4k_umount: Wrong file system specified" << endl; cerr << "smb4k_umount: Wrong file system specified" << endl;
} }

Loading…
Cancel
Save