IDialogModule.cs 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. /*
  2. * Copyright (c) Contributors, http://opensimulator.org/
  3. * See CONTRIBUTORS.TXT for a full list of copyright holders.
  4. *
  5. * Redistribution and use in source and binary forms, with or without
  6. * modification, are permitted provided that the following conditions are met:
  7. * * Redistributions of source code must retain the above copyright
  8. * notice, this list of conditions and the following disclaimer.
  9. * * Redistributions in binary form must reproduce the above copyright
  10. * notice, this list of conditions and the following disclaimer in the
  11. * documentation and/or other materials provided with the distribution.
  12. * * Neither the name of the OpenSim Project nor the
  13. * names of its contributors may be used to endorse or promote products
  14. * derived from this software without specific prior written permission.
  15. *
  16. * THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY
  17. * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
  18. * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  19. * DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY
  20. * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
  21. * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
  22. * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  23. * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  24. * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  25. * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  26. */
  27. using System;
  28. using OpenMetaverse;
  29. using OpenSim.Framework;
  30. namespace OpenSim.Region.Environment.Interfaces
  31. {
  32. public interface IDialogModule
  33. {
  34. /// <summary>
  35. /// Send a non-modal alert message to a particular user. This can disappear from the user's view after a
  36. /// small interval.
  37. /// </summary>
  38. /// <param name="client"></param>
  39. /// <param name="message"></param>
  40. void SendAlertToUser(IClientAPI client, string message);
  41. /// <summary>
  42. /// Send an alert message to a particular user.
  43. /// </summary>
  44. /// <param name="client"></param>
  45. /// <param name="message"></param>
  46. /// <param name="modal"></param>
  47. void SendAlertToUser(IClientAPI client, string message, bool modal);
  48. /// <summary>
  49. /// Send a non-modal alert message to a particular user.
  50. /// </summary>
  51. /// <param name="agentID"></param>
  52. /// <param name="message"></param>
  53. void SendAlertToUser(UUID agentID, string message);
  54. /// <summary>
  55. /// Send an alert message to a particular user.
  56. /// </summary>
  57. /// <param name="agentID"></param>
  58. /// <param name="message"></param>
  59. /// <param name="modal"></param>
  60. void SendAlertToUser(UUID agentID, string message, bool modal);
  61. /// <summary>
  62. /// Send an alert message to a particular user.
  63. /// </summary>
  64. /// <param name="firstName"></param>
  65. /// <param name="lastName"></param>
  66. /// <param name="message"></param>
  67. /// <param name="modal"></param>
  68. void SendAlertToUser(string firstName, string lastName, string message, bool modal);
  69. /// <summary>
  70. /// Send an alert message to all users in the scene.
  71. /// </summary>
  72. /// <param name="message"></param>
  73. void SendGeneralAlert(string message);
  74. /// <summary>
  75. /// Send a dialog box to a particular user.
  76. /// </summary>
  77. /// <param name="avatarID"></param>
  78. /// <param name="objectName"></param>
  79. /// <param name="objectID"></param>
  80. /// <param name="ownerID"></param>
  81. /// <param name="message"></param>
  82. /// <param name="textureID"></param>
  83. /// <param name="ch"></param>
  84. /// <param name="buttonlabels"></param>
  85. void SendDialogToUser(
  86. UUID avatarID, string objectName, UUID objectID, UUID ownerID,
  87. string message, UUID textureID, int ch, string[] buttonlabels);
  88. /// <summary>
  89. /// Send a url to a particular user.
  90. /// </summary>
  91. /// <param name="avatarID"></param>
  92. /// <param name="objectName"></param>
  93. /// <param name="objectID"></param>
  94. /// <param name="ownerID"></param>
  95. /// <param name="groupOwned"></param>
  96. /// <param name="message"></param>
  97. /// <param name="url"></param>
  98. void SendUrlToUser(
  99. UUID avatarID, string objectName, UUID objectID, UUID ownerID, bool groupOwned, string message, string url);
  100. /// <summary>
  101. /// Send a notification to all users in the scene. This notification should remain around until the
  102. /// user explicitly dismisses it.
  103. /// </summary>
  104. ///
  105. /// On the Linden Labs Second Client (as of 1.21), this is a big blue box message on the upper right of the
  106. /// screen.
  107. ///
  108. /// <param name="fromAvatarID">The user sending the message</param>
  109. /// <param name="fromAvatarName">The name of the user doing the sending</param>
  110. /// <param name="message">The message being sent to the user</param>
  111. void SendNotificationToUsersInRegion(UUID fromAvatarID, string fromAvatarName, string message);
  112. /// <summary>
  113. /// Send a notification to all users in the estate. This notification should remain around until the
  114. /// user explicitly dismisses it.
  115. /// </summary>
  116. ///
  117. /// On the Linden Labs Second Client (as of 1.21), this is a big blue box message on the upper right of the
  118. /// screen.
  119. ///
  120. /// <param name="fromAvatarID">The user sending the message</param>
  121. /// <param name="fromAvatarName">The name of the user doing the sending</param>
  122. /// <param name="message">The message being sent to the user</param>
  123. void SendNotificationToUsersInEstate(UUID fromAvatarID, string fromAvatarName, string message);
  124. }
  125. }