diff --git a/App/bll_polychat.h b/App/bll_polychat.h index c41d387..2d40283 100644 --- a/App/bll_polychat.h +++ b/App/bll_polychat.h @@ -42,44 +42,44 @@ static QHostAddress getIPAddress() */ static bool initLocalUser(QString name, QString groupNumber) { - localUserName = name; - localUserGroupNumber = groupNumber; - localIpAddress = getIPAddress(); + ::localUserName = name; + ::localUserGroupNumber = groupNumber; + ::localIpAddress = getIPAddress(); return true; } static QString getLocalUserName() { - return localUserName; + return ::localUserName; } static void setLocalUserName(QString localUserName) { - localUserName = localUserName; + ::localUserName = localUserName; } static QString getLocalUserGroupNumber() { - return localUserGroupNumber; + return ::localUserGroupNumber; } static void setLocalUserGroupNumber(QString localUserGroupNumber) { - localUserGroupNumber = localUserGroupNumber; + ::localUserGroupNumber = localUserGroupNumber; } static QHostAddress getLocalIpAddress() { - return localIpAddress; + return ::localIpAddress; } static void setLocalIpAddress(QHostAddress localIpAddress) { - localIpAddress = localIpAddress; + ::localIpAddress = localIpAddress; } static qint16 getPortChatList() { - return PORT_CHAT_LIST; + return ::PORT_CHAT_LIST; } /** Show ChatList Widget @@ -87,8 +87,8 @@ static qint16 getPortChatList() */ static void initAndShowChatList(QWidget* parent) { - chatList = new ChatList(parent, localUserName, localUserGroupNumber, localIpAddress); - chatList->show(); + ::chatList = new ChatList(parent, ::localUserName, ::localUserGroupNumber, ::localIpAddress); + ::chatList->show(); } } diff --git a/App/main.cpp b/App/main.cpp index 4e9a036..991e38a 100644 --- a/App/main.cpp +++ b/App/main.cpp @@ -6,8 +6,8 @@ #include "tcpserver.h" #include "db_localdata.h" -QString localUserName = ""; // User Name (get in user login) -QString localUserGroupNumber = ""; // Group number (get in user login) +QString localUserName = ""; // User Name (will get in user login) +QString localUserGroupNumber = ""; // Group number (will get in user login) QHostAddress localIpAddress = QHostAddress(); ChatList* chatList = nullptr; // Widget ChatList (Only one)