SysStatus.cpp
上传用户:xiaoke98
上传日期:2014-06-29
资源大小:5718k
文件大小:1k
源码类别:

家庭/个人应用

开发平台:

Visual C++

  1. // SysStatus.cpp: implementation of the CSysStatus class.
  2. //
  3. //////////////////////////////////////////////////////////////////////
  4. #include "stdafx.h"
  5. #include "HomeFinanceManager.h"
  6. #include "SysStatus.h"
  7. #ifdef _DEBUG
  8. #undef THIS_FILE
  9. static char THIS_FILE[]=__FILE__;
  10. #define new DEBUG_NEW
  11. #endif
  12. //////////////////////////////////////////////////////////////////////
  13. // Construction/Destruction
  14. //////////////////////////////////////////////////////////////////////
  15. CSysStatus gSysStatus;
  16. CSysStatus::CSysStatus()
  17. {
  18. m_bHasLogin = false;
  19. m_strUserName = "未登录用户";
  20. }
  21. CSysStatus::~CSysStatus()
  22. {
  23. }
  24. void CSysStatus::setLoginStatus(BOOL bLogin)
  25. {
  26. m_bHasLogin = bLogin;
  27. }
  28. BOOL CSysStatus::getLoginStatus(void)
  29. {
  30. return m_bHasLogin;
  31. }
  32. void    CSysStatus::setUserName(CString strName)
  33. {
  34. m_strUserName = strName;
  35. }
  36. CString CSysStatus::getUserName(void)
  37. {
  38. return m_strUserName;
  39. }