diff options
author | Jacek Antonelli | 2008-08-15 23:45:50 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:45:50 -0500 |
commit | 2a4dea528f670b9bb1f77ef27a8a1dd16603d114 (patch) | |
tree | 95c68e362703c9099d571ecbdc6142b1cda1e005 /linden/indra/newview/llviewernetwork.h | |
parent | Second Life viewer sources 1.20.6 (diff) | |
download | meta-impy-2a4dea528f670b9bb1f77ef27a8a1dd16603d114.zip meta-impy-2a4dea528f670b9bb1f77ef27a8a1dd16603d114.tar.gz meta-impy-2a4dea528f670b9bb1f77ef27a8a1dd16603d114.tar.bz2 meta-impy-2a4dea528f670b9bb1f77ef27a8a1dd16603d114.tar.xz |
Second Life viewer sources 1.20.7
Diffstat (limited to 'linden/indra/newview/llviewernetwork.h')
-rw-r--r-- | linden/indra/newview/llviewernetwork.h | 46 |
1 files changed, 36 insertions, 10 deletions
diff --git a/linden/indra/newview/llviewernetwork.h b/linden/indra/newview/llviewernetwork.h index 176ce43..966034f 100644 --- a/linden/indra/newview/llviewernetwork.h +++ b/linden/indra/newview/llviewernetwork.h | |||
@@ -59,18 +59,44 @@ enum EGridInfo | |||
59 | GRID_INFO_COUNT | 59 | GRID_INFO_COUNT |
60 | }; | 60 | }; |
61 | 61 | ||
62 | 62 | /** | |
63 | struct LLGridData | 63 | * @brief A class to manage the viewer's login state. |
64 | * | ||
65 | **/ | ||
66 | class LLViewerLogin : public LLSingleton<LLViewerLogin> | ||
64 | { | 67 | { |
65 | const char* mLabel; | 68 | public: |
66 | const char* mName; | 69 | LLViewerLogin(); |
67 | const char* mLoginURI; | 70 | |
68 | const char* mHelperURI; | 71 | void setGridChoice(EGridInfo grid); |
69 | }; | 72 | void setGridChoice(const std::string& grid_name); |
73 | void resetURIs(); | ||
74 | |||
75 | /** | ||
76 | * @brief Get the enumeration of the grid choice. | ||
77 | * Should only return values > 0 && < GRID_INFO_COUNT | ||
78 | **/ | ||
79 | EGridInfo getGridChoice() const; | ||
70 | 80 | ||
71 | extern EGridInfo gGridChoice; | 81 | /** |
72 | extern LLGridData gGridInfo[]; | 82 | * @brief Get a readable label for the grid choice. |
73 | extern LLString gGridName; /* Flawfinder: ignore */ | 83 | * Returns the readable name for the grid choice. |
84 | * If the grid is 'other', returns something | ||
85 | * the string used to specifiy the grid. | ||
86 | **/ | ||
87 | std::string getGridLabel() const; | ||
88 | |||
89 | std::string getKnownGridLabel(EGridInfo grid_index) const; | ||
90 | |||
91 | void getLoginURIs(std::vector<std::string>& uris) const; | ||
92 | std::string getHelperURI() const; | ||
93 | |||
94 | bool isInProductionGrid(); | ||
95 | |||
96 | private: | ||
97 | EGridInfo mGridChoice; | ||
98 | std::string mGridName; | ||
99 | }; | ||
74 | 100 | ||
75 | const S32 MAC_ADDRESS_BYTES = 6; | 101 | const S32 MAC_ADDRESS_BYTES = 6; |
76 | extern unsigned char gMACAddress[MAC_ADDRESS_BYTES]; /* Flawfinder: ignore */ | 102 | extern unsigned char gMACAddress[MAC_ADDRESS_BYTES]; /* Flawfinder: ignore */ |