summaryrefslogtreecommitdiffstats
path: root/ksirc/ksircchannel.h
blob: 883b57948c91e6e7b40fbdfa0f18fb83ad2fd6ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#ifndef KSIRCCHANNEL_H
#define KSIRCCHANNEL_H

#include <tqstring.h>

class KSircChannel
{

public:
  KSircChannel( const TQString server,
		const TQString channel,
		const TQString key = TQString(),
		  const TQString encoding = TQString()
		) :
  m_server(server), m_channel(channel),
  m_key(key), m_encoding(encoding) {}

  const TQString server() const   { return m_server; }
  const TQString channel() const  { return m_channel; }
  const TQString key() const      { return m_key; }
  const TQString encoding() const { return m_encoding; }

  void setChannel(TQString channel) { m_channel = channel; }
  void setKey(TQString key) { m_key = key; }
  void setEncoding(TQString encoding) { m_encoding = encoding; }

private:
  const TQString m_server; /* channels can never change server */
  TQString     m_channel;
  TQString     m_key;
  TQString     m_encoding;

};

#endif