summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-console/profile.cpp
Unidiff
Diffstat (limited to 'noncore/apps/opie-console/profile.cpp') (more/less context) (show whitespace changes)
-rw-r--r--noncore/apps/opie-console/profile.cpp59
1 files changed, 59 insertions, 0 deletions
diff --git a/noncore/apps/opie-console/profile.cpp b/noncore/apps/opie-console/profile.cpp
new file mode 100644
index 0000000..b730218
--- a/dev/null
+++ b/noncore/apps/opie-console/profile.cpp
@@ -0,0 +1,59 @@
1#include "profile.h"
2
3Profile::Profile() {
4
5}
6Profile::Profile( const QString& name,
7 const QString& iolayerName,
8 int background,
9 int foreground,
10 int terminal )
11 : m_name( name ), m_ioLayer( iolayerName ), m_back( background ),
12 m_fore( foreground ), m_terminal( terminal )
13{
14}
15Profile::Profile( const Profile& prof )
16{
17 (*this) = prof;
18}
19Profile &Profile::operator=( const Profile& prof ) {
20 m_name = prof.m_name;
21 m_ioLayer = prof.m_ioLayer;
22 m_back = prof.m_back;
23 m_fore = prof.m_fore;
24 m_terminal = prof.m_terminal;
25
26 return *this;
27}
28Profile::~Profile() {
29}
30QString Profile::name()const {
31 return m_name;
32}
33QString Profile::ioLayerName()const {
34 return m_ioLayer;
35}
36int Profile::foreground()const {
37 return m_fore;
38}
39int Profile::background()const {
40 return m_back;
41}
42int Profile::terminal()const {
43 return m_terminal;
44}
45void Profile::setName( const QString& str ) {
46 m_name = str;
47}
48void Profile::setIOLayer( const QString& name ) {
49 m_ioLayer = name;
50}
51void Profile::setBackground( int back ) {
52 m_back = back;
53}
54void Profile::setForeground( int fore ) {
55 m_fore = fore;
56}
57void Profile::setTerminal( int term ) {
58 m_terminal = term;
59}