common.cpp File Reference


Functions

QString BoolToStr (bool &value)
void debugQt (const QString &message)
void Socket_print_error (int errorcode)
void SSL_print_error (int errorcode)
bool StrToBool (QString &value)
void unsupported_options (char *erreur, const QString &usage)
 command line error
bool validatePort (const int &port)

Variables

QString auteur_qtsmbstatus = "Daniel Rocher"
QString date_qtsmbstatus = "2008-11-04"
bool debug_qtsmbstatus = false
 view debug messages
uint int_qtsmbstatus_version = 206
QString mail_qtsmbstatus = "<a href='mailto:daniel.rocher@adella.org'>daniel.rocher@adella.org</a>"
Q_UINT16 port_server = 4443
 TCP port.
QString version_qtsmbstatus = "2.0.6"
QString web_qtsmbstatus = "<a href='http://qtsmbstatus.free.fr'>http://qtsmbstatus.free.fr</a>"

Function Documentation

QString BoolToStr ( bool &  value  ) 

Convert bool to string

See also:
StrToBool

void debugQt ( const QString &  message  ) 

view debug messages. The message is printed to stderr.

References debug_qtsmbstatus.

Referenced by ClientSocket::add_lockedfile(), ClientSocket::add_share(), ClientSocket::add_user(), main_windows::AllSearchSlot(), LineCore::Analysis(), ClientSocket::AnalysisSmbDestroyed(), ClientSocket::AnalysisSmbstatus(), main_windows::beforeQuit(), ClientSocket::ClientSocket(), ClientSSL::ClientSSL(), ClientSSL::closeConnection(), main_windows::closeEvent(), ClientSocket::CmdAuthRq(), ClientSocket::CmdKillUser(), ClientSocket::CmdSendMsg(), ClientSocket::CmdSmbRq(), main_windows::comboBox_valid(), MyApplication::commitData(), main_windows::configuration_changed(), configure_windows::configure_windows(), main_windows::ConfigureSlot(), ClientSSL::Connect(), ClientSocket::connectionToServer(), ClientSSL::connectToHost(), convertto201(), ClientSocket::core(), disconnect_manager::disconnect_manager(), smbmanager::end_process(), Sendmessage_manager::end_process(), process_smbd_exist::end_process(), disconnect_manager::end_process(), LogForm::eraseOldLog(), smbmanager::error(), Sendmessage_manager::error(), process_smbd_exist::error(), disconnect_manager::error(), ClientSSL::Exception(), ClientSocket::Exception(), main_windows::FileSearchSlot(), Server::incomingConnection(), ClientSocket::infoserver(), main_windows::InfoSMB(), LineCore::InitElement(), LineCore::InitHeader(), LineCore::LineCore(), LogForm::LogForm(), login_windows::login_windows(), machine::machine(), main_windows::MachineSearchSlot(), main(), main_windows::main_windows(), server::mark_childs(), main_windows::nextItem(), main_windows::NextSlot(), ClientSocket::ObjError(), main_windows::on_action_View_log_triggered(), LogForm::on_checkFile_stateChanged(), configure_windows::on_checkIcon_toggled(), configure_windows::on_checkLogActivity_toggled(), LogForm::on_checkShare_stateChanged(), LogForm::on_clearButton_clicked(), LogForm::on_filterEdit_textChanged(), LogForm::on_SaveLogButton_clicked(), main_windows::open_dialog_for_login(), PamThread::PamThread(), process_smbd_exist::process_smbd_exist(), smbmanager::read_data(), ClientSocket::readClient(), readConfigFile(), Sendmessage_manager::readFromStdout(), process_smbd_exist::readFromStdout(), main_windows::readHistoryFile(), smbmanager::ReadStderr(), Sendmessage_manager::ReadStderr(), disconnect_manager::ReadStderr(), server::refresh_childs(), ClientSSL::ResolveName(), main_windows::restore_minimize(), main_windows::restoreWindowSize(), LineCore::ReturnElement(), smbstatus::RQ_smbstatus(), PamThread::run(), main_windows::saveWindowSize(), main_windows::search(), main_windows::selectItem(), Sendmessage_manager::Sendmessage_manager(), ClientSocket::sendToClient(), ClientSSL::sendToServer(), ClientSocket::sendToServer(), server::server(), service::service(), PamThread::setAuth(), LogForm::setHeader(), ClientSocket::setSambaVersion(), main_windows::ShareSearchSlot(), main_windows::SignalErrorAuth(), main_windows::Slot_connect(), ClientSocket::slot_echo_timer(), process_smbd_exist::slot_EndProcessKill(), login_windows::Slot_login_button(), ClientSocket::slot_pam(), ClientSocket::slot_smbstatus(), ClientSocket::slot_timer(), configure_windows::SlotOk(), smbmanager::smbmanager(), smbstatus::smbstatus(), main_windows::socketclosed(), ClientSSL::socketClosed(), ClientSocket::socketclosed(), main_windows::socketconnected(), ClientSSL::socketConnected(), ClientSocket::socketconnected(), ClientSocket::socketConnectionClose(), ClientSSL::socketReadyRead(), LineCore::SortElements(), main_windows::trayicon_activated(), ClientSocket::UnreachableHost(), user::user(), main_windows::UserSearchSlot(), server::ViewInfoMachine(), server::ViewInfoServer(), server::ViewInfoService(), server::ViewInfoUser(), smbstatus::what_part(), writeConfigFile(), main_windows::writeHistoryFile(), ClientSocket::~ClientSocket(), ClientSSL::~ClientSSL(), configure_windows::~configure_windows(), disconnect_manager::~disconnect_manager(), LineCore::~LineCore(), LogForm::~LogForm(), login_windows::~login_windows(), machine::~machine(), main_windows::~main_windows(), PamThread::~PamThread(), process_smbd_exist::~process_smbd_exist(), Sendmessage_manager::~Sendmessage_manager(), Server::~Server(), server::~server(), service::~service(), smbmanager::~smbmanager(), smbstatus::~smbstatus(), and user::~user().

void Socket_print_error ( int  errorcode  ) 

Print to stderr, QSocketDevice error

Parameters:
errorcode code error
See also:
SSL_print_error

Referenced by ClientSocket::ClientSocket(), ClientSSL::connectToHost(), ClientSSL::Exception(), and ClientSocket::Exception().

void SSL_print_error ( int  errorcode  ) 

bool StrToBool ( QString &  value  ) 

Convert string "true" and "false" to boolean

See also:
BoolToStr

Referenced by convertto201().

void unsupported_options ( char *  erreur,
const QString &  usage 
)

command line error

Referenced by main().

bool validatePort ( const int &  port  ) 

Test if TCP port is valid

Parameters:
port port number
Return values:
true TCP port is valid
false TCP port is not valid

Referenced by convertto201(), main(), and readConfigFile().


Variable Documentation

QString auteur_qtsmbstatus = "Daniel Rocher"

Referenced by main_windows::helpAbout().

QString date_qtsmbstatus = "2008-11-04"

Referenced by main_windows::helpAbout().

bool debug_qtsmbstatus = false

view debug messages

Referenced by debugQt(), and main().

Referenced by writeConfigFile().

QString mail_qtsmbstatus = "<a href='mailto:daniel.rocher@adella.org'>daniel.rocher@adella.org</a>"

Referenced by main_windows::helpAbout().

Q_UINT16 port_server = 4443

QString version_qtsmbstatus = "2.0.6"

QString web_qtsmbstatus = "<a href='http://qtsmbstatus.free.fr'>http://qtsmbstatus.free.fr</a>"

Referenced by main_windows::helpAbout().


Generated on Thu Nov 6 20:49:44 2008 for qtsmbstatus.kdevelop by  doxygen 1.5.5