Allow address/port retrieval from View.

This commit is contained in:
Bartosz Taudul 2020-03-06 22:10:24 +01:00
parent f945278959
commit d25614d50f
2 changed files with 4 additions and 0 deletions

View File

@ -81,6 +81,9 @@ public:
void NotifyRootWindowSize( float w, float h ) { m_rootWidth = w; m_rootHeight = h; }
void SetTextEditorFile( const char* fileName, int line );
std::string GetAddress() const { return m_worker.GetAddr(); }
int GetPort() const { return m_worker.GetPort(); }
private:
enum class Namespace : uint8_t
{

View File

@ -337,6 +337,7 @@ public:
~Worker();
const std::string& GetAddr() const { return m_addr; }
int GetPort() const { return m_port; }
const std::string& GetCaptureName() const { return m_captureName; }
const std::string& GetCaptureProgram() const { return m_captureProgram; }
uint64_t GetCaptureTime() const { return m_captureTime; }