18 #ifndef INC_C4StartupNetDlg
19 #define INC_C4StartupNetDlg
70 time_t iRequestTimeout;
75 int32_t iInfoIconCount;
86 bool QueryReferences();
87 static const char *GetQueryTypeName(
QueryType eQueryType);
88 void SetError(
const char *szErrorText,
TimeoutType eTimeout);
91 void InvalidateStatusIcons() { iInfoIconCount=0; }
92 void AddStatusIcon(
C4GUI::Icons eIcon,
const char *szToolTip);
94 void UpdateSmallState();
95 void UpdateEntrySize();
133 enum DlgMode { SNDM_GameList=0, SNDM_Chat=1 };
139 #ifdef WITH_AUTOMATIC_UPDATE
148 bool fIsCollapsed{
false};
149 bool fUpdatingList{
false};
153 int iGameDiscoverInterval{0};
154 time_t tLastRefresh{0};
182 #ifdef WITH_AUTOMATIC_UPDATE
192 void UpdateMasterserver();
193 void UpdateList(
bool fGotReference =
false);
194 void UpdateUpdateButton();
195 void UpdateCollapsed();
196 void UpdateSelection(
bool fUpdateCollapsed);
197 void UpdateDlgMode();
203 bool fUpdateCheckPending{
false};
205 DlgMode GetDlgMode();
const int C4NetMasterServerQueryInterval
const int C4NetReferenceTimeout
const int C4NetErrorRefTimeout
const int C4NetMinRefreshInterval
const int C4NetRefRequestTimeout
const int C4NetGameDiscoveryInterval
void OnChatTitleChange(const StdStrBuf &sNewTitle)
void OnBtnRecord(C4GUI::Control *btn)
void OnClosed(bool fOK) override
C4GUI::Edit::InputResult OnJoinAddressEnter(C4GUI::Edit *edt, bool fPasting, bool fPastingMore)
void OnCreateGameBtn(C4GUI::Control *btn)
void OnReferenceEntryAdd(C4StartupNetListEntry *pEntry)
~C4StartupNetDlg() override
void OnBackBtn(C4GUI::Control *btn)
void OnRefreshBtn(C4GUI::Control *btn)
C4GUI::Control * GetDefaultControl() override
void DrawElement(C4TargetFacet &cgo) override
void OnSelDblClick(class C4GUI::Element *pEl)
void OnBtnInternet(C4GUI::Control *btn)
C4GUI::Edit::InputResult OnSearchFieldEnter(C4GUI::Edit *edt, bool fPasting, bool fPastingMore)
void CheckVersionUpdate()
void OnJoinGameBtn(C4GUI::Control *btn)
void OnSec1Timer() override
bool HasBackground() override
void OnBtnGameList(C4GUI::Control *btn)
void OnSelChange(class C4GUI::Element *pEl)
C4GUI::Control * GetDlgModeFocusControl()
void OnBtnChat(C4GUI::Control *btn)
void DrawElement(C4TargetFacet &cgo) override
C4Network2Reference * GetReference() const
~C4StartupNetListEntry() override
const char * GetJoinAddress()
void SetRefQuery(const char *szAddress, QueryType eQueryType)
void UpdateCollapsed(bool fToCollapseValue)
void SetReference(C4Network2Reference *pNewRef)
C4GUI::Element * GetNextLower(int32_t sortOrder)
void SetVisibility(bool fToValue) override
bool IsSameAddress(const C4Network2Reference *pRef2)
bool IsSameHost(const C4Network2Reference *pRef2)
C4StartupNetListEntry(C4GUI::ListBox *pForListBox, C4GUI::Element *pInsertBefore, class C4StartupNetDlg *pNetDlg)
int32_t GetListItemTopSpacing() override
bool KeywordMatch(const char *szMatch)
bool IsSameRefQueryAddress(const char *szJoinAddress)
C4Network2Reference * GrabReference()
const char * getData() const