snaplock: snaplock::snaplock::computer_t Class Reference

#include <snaplock.h>

Public Types typedef std::map< QString, pointer_tmap_t   typedef std::shared_ptr< computer_tpointer_t   typedef int64_t priority_t   typedef uint32_t random_t   typedef std::vector< pointer_tvector_t   Public Member Functions  computer_t ()    computer_t (QString const &name, uint8_t priority)   bool get_connected () const   QString const & get_id () const   QString const & get_ip_address () const   QString const & get_name () const   priority_t get_priority () const   time_t get_start_time () const   bool is_self () const   void set_connected (bool connected)   bool set_id (QString const &id)   void set_start_time (time_t start_time)   Static Public Attributes static priority_t const PRIORITY_DEFAULT = 14   static priority_t const PRIORITY_LEADER = 0   static priority_t const PRIORITY_MAX = 15   static priority_t const PRIORITY_MIN = 0   static priority_t const PRIORITY_OFF = 15   static priority_t const PRIORITY_UNDEFINED = -1   static priority_t const PRIORITY_USER_MIN = 1   Private Attributes bool f_connected = true   QString f_id = QString()   QString f_ip_address = QString()   QString f_name = QString()   pid_t f_pid = 0   priority_t f_priority = PRIORITY_UNDEFINED   random_t f_random_id = 0   bool f_self = false   time_t f_start_time = -1   Detailed Description

Definition at line 325 of file snaplock.h.

Member Typedef Documentation
typedef std::map<QString, pointer_t> snaplock::snaplock::computer_t::map_t

Definition at line 331 of file snaplock.h.

typedef std::shared_ptr<computer_t> snaplock::snaplock::computer_t::pointer_t

Definition at line 330 of file snaplock.h.

typedef int64_t snaplock::snaplock::computer_t::priority_t

Definition at line 328 of file snaplock.h.

typedef uint32_t snaplock::snaplock::computer_t::random_t

Definition at line 329 of file snaplock.h.

typedef std::vector<pointer_t> snaplock::snaplock::computer_t::vector_t

Definition at line 332 of file snaplock.h.

Constructor & Destructor Documentation
snaplock::snaplock::computer_t::computer_t ( )

Definition at line 337 of file snaplock.cpp.

snaplock::snaplock::computer_t::computer_t ( QString const &  name, uint8_t  priority  )

Definition at line 344 of file snaplock.cpp.

Member Function Documentation
bool snaplock::snaplock::computer_t::get_connected ( ) const

Definition at line 369 of file snaplock.cpp.

QString const & snaplock::snaplock::computer_t::get_id ( ) const

Definition at line 458 of file snaplock.cpp.

QString const & snaplock::snaplock::computer_t::get_ip_address ( ) const

Definition at line 487 of file snaplock.cpp.

QString const & snaplock::snaplock::computer_t::get_name ( ) const

Definition at line 452 of file snaplock.cpp.

snaplock::computer_t::priority_t snaplock::snaplock::computer_t::get_priority ( ) const

Definition at line 434 of file snaplock.cpp.

time_t snaplock::snaplock::computer_t::get_start_time ( ) const

Definition at line 446 of file snaplock.cpp.

bool snaplock::snaplock::computer_t::is_self ( ) const

Definition at line 357 of file snaplock.cpp.

void snaplock::snaplock::computer_t::set_connected ( bool  connected)

Definition at line 363 of file snaplock.cpp.

bool snaplock::snaplock::computer_t::set_id ( QString const &  id)

Definition at line 375 of file snaplock.cpp.

void snaplock::snaplock::computer_t::set_start_time ( time_t  start_time)

Definition at line 440 of file snaplock.cpp.

Member Data Documentation
bool snaplock::snaplock::computer_t::f_connected = true private

Definition at line 360 of file snaplock.h.

QString snaplock::snaplock::computer_t::f_id = QString() mutableprivate

Definition at line 358 of file snaplock.h.

QString snaplock::snaplock::computer_t::f_ip_address = QString() private

Definition at line 365 of file snaplock.h.

QString snaplock::snaplock::computer_t::f_name = QString() private

Definition at line 367 of file snaplock.h.

pid_t snaplock::snaplock::computer_t::f_pid = 0 private

Definition at line 366 of file snaplock.h.

priority_t snaplock::snaplock::computer_t::f_priority = PRIORITY_UNDEFINED private

Definition at line 363 of file snaplock.h.

random_t snaplock::snaplock::computer_t::f_random_id = 0 private

Definition at line 364 of file snaplock.h.

bool snaplock::snaplock::computer_t::f_self = false private

Definition at line 361 of file snaplock.h.

time_t snaplock::snaplock::computer_t::f_start_time = -1 private

Definition at line 369 of file snaplock.h.

priority_t const snaplock::snaplock::computer_t::PRIORITY_DEFAULT = 14 static

Definition at line 338 of file snaplock.h.

priority_t const snaplock::snaplock::computer_t::PRIORITY_LEADER = 0 static

Definition at line 336 of file snaplock.h.

priority_t const snaplock::snaplock::computer_t::PRIORITY_MAX = 15 static

Definition at line 340 of file snaplock.h.

priority_t const snaplock::snaplock::computer_t::PRIORITY_MIN = 0 static

Definition at line 335 of file snaplock.h.

priority_t const snaplock::snaplock::computer_t::PRIORITY_OFF = 15 static

Definition at line 339 of file snaplock.h.

priority_t const snaplock::snaplock::computer_t::PRIORITY_UNDEFINED = -1 static

Definition at line 334 of file snaplock.h.

priority_t const snaplock::snaplock::computer_t::PRIORITY_USER_MIN = 1 static

Definition at line 337 of file snaplock.h.


The documentation for this class was generated from the following files:

This document is part of the Snap! Websites Project.

Copyright by Made to Order Software Corp.

Syndicate content

Snap! Websites
An Open Source CMS System in C++

Contact Us Directly