Advertisement
globalbus

Klient IRC IDL

Nov 12th, 2012
2,358
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
IDL 5.80 KB | None | 0 0
  1. //archiwizacja - external component
  2. interface Archiwizacja {
  3.  
  4.     String aktualnaData(in String format)
  5.     void dodajDoArchiwum()
  6.     void dodajDoArchiwum(in String rozmowca, in String wiadomosc)
  7.     void utworzFolderArchiwum()
  8.     void utworzFolderArchiwum(in String[][] kontakty)
  9.    
  10. }
  11.  
  12. //BeanFactory
  13. interface IBeanFactory{
  14.     IMainFrame getMainFrame()
  15.     IMessageControl getMessageControl()
  16.     Odczyt getArchiveFrame()
  17. }//ConfigProvider
  18. interface IConfigProvider{
  19.     IConfigProvider getNewInstance()
  20.     Type getConfig(Type clazz)
  21.     void setInstance( in IConfigProvider config)
  22.     void putConfig(in Object obj)
  23.     void loadDefaults()
  24. }
  25. //ConfigProviderDefaults
  26. interface IConfigProviderDefaults {
  27.     Object Initialize()
  28. }
  29. //InputControl
  30. IInputControl : IVisualControl{
  31.     void pushMessage()
  32. }
  33. //IRCEventOwnListener
  34. interface IIRCEventOwnListener {   
  35.     string unknown(in string prefix, in string command, in string middle, in string trailing)
  36.     string onRegistered()
  37.     string onDisconnected()
  38.     string onError(in string msg)
  39.     string onError(in int num, in string msg)
  40.     string onInvite(in string chan, in string user, in string passiveNick)
  41.     string onJoin(in string chan, in string user)
  42.     string onKick(in string chan, in string user, in string passiveNick, in string msg)
  43.     string onMode(in string chan, in string user, in IRCModeParser modeParser)
  44.     string onMode(in string user, in string passiveNick, in string mode)
  45.     string onNick(in string user, in string newNick)
  46.     string onNotice(in string target, in string user, in string msg)
  47.     string onPart(in string chan, in string user, in string msg)
  48.     string onPrivmsg(in string target, in string user, in string msg)
  49.     string onQuit(in string user, in string msg)
  50.     string onReply(int num, in string value, in string msg)
  51.     string onTopic(in string chan, string user)
  52.     string OnRegisterNicks(in string string, List<string> list)
  53.     string onTopicChange(in string chan, in string string, in string topic)
  54.     string onMessage(in string msg)
  55. }
  56. //IRCProvider
  57. interface IIRCProvider {
  58.     void addListener(in IReceive receive)
  59.     string getCurrentNick()
  60.     void sendRaw(in string text)
  61.     void connect()
  62.     boolean isConnected()
  63.     void disconnect()
  64.     void doQuit()
  65.     void joinChannel(in string channel)
  66.     void changeNick(in string nick)
  67.     void whoIs()
  68.     void whoIs(in string nick)
  69. }//Settings Tab
  70. interface ISettingsControlTab : IVisualControl {
  71.     String getName()
  72.     void validate()
  73.  
  74. }
  75. //MainFrame
  76. interface IMainFrame {
  77.     JFrame getFrame()
  78. }//MessageControl (GUI)
  79. interface IMessageControl : IVisualControl{
  80.     string addTopicMsg(in String text)
  81.     string addNickChangeMsg(in String text)
  82.     string addMessage(in String text)
  83.     string addMessage(in String currentNick, String msg)
  84.     IMessageControl getInstance()
  85.     JTextPane getTextPane()
  86.     StyledDocument getStyledDocument()
  87.     void setName(in String target)
  88.     String getName()
  89.     void clear()
  90.  }
  91. interface IMessageControlFormatting {
  92.  
  93.     void initListener(in IMessageControl messageControl)
  94.  
  95. }
  96. //Message Handler
  97. interface IMessageControlHandler : IMessageControl{
  98.     String getHandlerName()
  99.     boolean isEnabledHandler()
  100.     void setEnabledHandler(in bool b)
  101. }
  102. //Real MessageControl - empty interface
  103. interface IMessageControlMain : IMessageControl {
  104.  
  105. }
  106. //MessagePanelFacade
  107. interface IMessagePanelFacade : VisualControl{
  108.     IMessageControl getMessageControl()
  109.     NickList getNickList()
  110.     IMessagePanelFacade getInstance()
  111.     void setChanPanel()
  112.     void setNickList(in List<string> list)
  113. }
  114. //Multithreader
  115. interface IMultithreader {
  116.     void addToPool(in Runnable object)
  117. }//NotifyCondition structure
  118. interface INotifyCondition {
  119.    
  120.     String getRegex()
  121.     void setRegex(String regex)
  122.    
  123.     boolean isNotifiedBySound()
  124.     void setNotifiedBySound(in Boolean notifiedBySound)
  125.    
  126.     String getNotifySound()
  127.     void setNotifySound(in String notifySound)
  128.    
  129.     boolean isNotifiedByTrayBlink()
  130.     void setNotifiedByTrayBlink(in boolean notifiedByTrayBlink)
  131.    
  132.     boolean isNotifiedByPopup()
  133.     void setNotifiedByPopup(in boolean notifiedByPopup)
  134.    
  135.     String getPopupMessage()
  136.     void setPopupMessage(in String popupMessage)
  137.  
  138. }
  139. interface INotifyConfig {
  140.     Set<INotifyCondition> getNotifyConditions()
  141.     void setNotifyConditions(in Set<INotifyCondition> notifyConditions)
  142.  
  143. }
  144. //Odczyt - external component
  145. interface Odczyt {
  146.     void wczytajWszystkieRozmowy()
  147.     void wczytajWszystkieRozmowy(in String rozmowca)
  148.     void wczytajRozmowe()
  149.     String wczytajRozmowe(in String wybranaRozmowa)
  150. }
  151.  
  152. //Receive
  153. interface IReceive :IVisualControl, IIRCEventListener {
  154.     string getContext()
  155. }
  156. //Send
  157. interface ISend{
  158.     void pushMessage(in string text)
  159. }
  160. //ServerConfiguration
  161. interface IServerConfiguration {
  162.     string getServerAddress()
  163.     void setServerAddress(in string serverAddress)
  164.     int getServerPort()
  165.     void setServerPort(in int serverPort)
  166.     Set<string> getAvailableNicks()
  167.     void setAvailableNicks(in Set<string> availableNicks)
  168.     string getNickNext()
  169.     string getUserName()
  170.     void setUserName(in string userName)
  171.     string getRealName()
  172.     void setRealName(in string realName)
  173.     string getQuitMsg()
  174.     void setQuitMsg(in string quitMsg)
  175.     void setEncoding(in string encoding)
  176.     string getEncoding()
  177. }
  178. //SettingsControl
  179. interface ISettingControl {
  180.     JDialog getDialog()
  181. }//SpellCheck - external component
  182. interface ISpellCheck{
  183.     void CheckWord(in String word)
  184. }
  185. //VisibilityConfig
  186. interface IVisibilityConfig {
  187.     Color getNickStyleColor()
  188.     Color getMessageStyleColor()
  189.     Color getTimeStyleColor()
  190.     Color getNickChangeStyleColor()
  191.     Color getTopicStyleColor()
  192.     void setNickStyleColor(in Color nickStyleColor)
  193.     void setMessageStyleColor(in Color messageStyleColor)
  194.     void setTimeStyleColor(in Color timeStyleColor)
  195.     void setNickChangeStyleColor(in Color nickChangeStyleColor)
  196.     void setTopicStyleColor(in Color topicStyleColor)
  197. }//VisualControl
  198. interface IVisualControl {
  199.  
  200.     JPanel getPanel()
  201.  
  202. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement