WOLPageMsg.cpp 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. /*
  2. ** Command & Conquer Renegade(tm)
  3. ** Copyright 2025 Electronic Arts Inc.
  4. **
  5. ** This program is free software: you can redistribute it and/or modify
  6. ** it under the terms of the GNU General Public License as published by
  7. ** the Free Software Foundation, either version 3 of the License, or
  8. ** (at your option) any later version.
  9. **
  10. ** This program is distributed in the hope that it will be useful,
  11. ** but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. ** GNU General Public License for more details.
  14. **
  15. ** You should have received a copy of the GNU General Public License
  16. ** along with this program. If not, see <http://www.gnu.org/licenses/>.
  17. */
  18. /******************************************************************************
  19. *
  20. * FILE
  21. * $Archive: /Commando/Code/WWOnline/WOLPageMsg.cpp $
  22. *
  23. * DESCRIPTION
  24. * Page message
  25. *
  26. * PROGRAMMER
  27. * Denzil E. Long, Jr.
  28. * $Author: Denzil_l $
  29. *
  30. * VERSION INFO
  31. * $Revision: 6 $
  32. * $Modtime: 12/19/01 2:12p $
  33. *
  34. ******************************************************************************/
  35. #include "WOLPageMsg.h"
  36. namespace WOL
  37. {
  38. #include <WOLAPI\chatdefs.h>
  39. }
  40. namespace WWOnline {
  41. /******************************************************************************
  42. *
  43. * NAME
  44. * PageMessage::PageMessage
  45. *
  46. * DESCRIPTION
  47. * Constructor
  48. *
  49. * INPUTS
  50. * NONE
  51. *
  52. * RESULT
  53. * NONE
  54. *
  55. ******************************************************************************/
  56. PageMessage::PageMessage(const char* pagersName, const char* message) :
  57. mPager(pagersName),
  58. mMessage(message)
  59. {
  60. }
  61. /******************************************************************************
  62. *
  63. * NAME
  64. * PageMessage::PageMessage
  65. *
  66. * DESCRIPTION
  67. * Constructor
  68. *
  69. * INPUTS
  70. * NONE
  71. *
  72. * RESULT
  73. * NONE
  74. *
  75. ******************************************************************************/
  76. PageMessage::PageMessage(const wchar_t* pagersName, const wchar_t* message) :
  77. mPager(pagersName),
  78. mMessage(message)
  79. {
  80. }
  81. /******************************************************************************
  82. *
  83. * NAME
  84. * PageMessage::PageMessage
  85. *
  86. * DESCRIPTION
  87. * Copy constructor
  88. *
  89. * INPUTS
  90. * NONE
  91. *
  92. * RESULT
  93. * NONE
  94. *
  95. ******************************************************************************/
  96. PageMessage::PageMessage(const PageMessage& page)
  97. {
  98. *this = page;
  99. }
  100. /******************************************************************************
  101. *
  102. * NAME
  103. * PageMessage::~PageMessage
  104. *
  105. * DESCRIPTION
  106. * Destructor
  107. *
  108. * INPUTS
  109. * NONE
  110. *
  111. * RESULT
  112. * NONE
  113. *
  114. ******************************************************************************/
  115. PageMessage::~PageMessage()
  116. {
  117. }
  118. /******************************************************************************
  119. *
  120. * NAME
  121. * PageMessage::operator=
  122. *
  123. * DESCRIPTION
  124. * Assignment operator
  125. *
  126. * INPUTS
  127. *
  128. * RESULT
  129. *
  130. ******************************************************************************/
  131. const PageMessage& PageMessage::operator=(const PageMessage& page)
  132. {
  133. mPager = page.mPager;
  134. mMessage = page.mMessage;
  135. return (*this);
  136. }
  137. } // namespace WWOnline