Diffstat (limited to 'noncore/apps/opie-console/profile.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/apps/opie-console/profile.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/noncore/apps/opie-console/profile.cpp b/noncore/apps/opie-console/profile.cpp index 1a94619..51d1aa8 100644 --- a/noncore/apps/opie-console/profile.cpp +++ b/noncore/apps/opie-console/profile.cpp | |||
@@ -6,13 +6,13 @@ Profile::Profile() { | |||
6 | Profile::Profile( const QString& name, | 6 | Profile::Profile( const QString& name, |
7 | const QCString& iolayerName, | 7 | const QCString& iolayerName, |
8 | const QCString& termName, | 8 | const QCString& termName, |
9 | int background, | 9 | int background, |
10 | int foreground, | 10 | int foreground, |
11 | int terminal ) | 11 | int terminal ) |
12 | : m_name( name ), m_ioLayer( iolayerName ), m_term( termName), | 12 | : m_name( name ), m_ioLayer( iolayerName ), m_term( termName), m_autoConnect(0), |
13 | m_back( background ), m_fore( foreground ), m_terminal( terminal ) | 13 | m_back( background ), m_fore( foreground ), m_terminal( terminal ) |
14 | {} | 14 | {} |
15 | Profile::Profile( const Profile& prof ) | 15 | Profile::Profile( const Profile& prof ) |
16 | { | 16 | { |
17 | (*this) = prof; | 17 | (*this) = prof; |
18 | } | 18 | } |
@@ -21,12 +21,13 @@ bool Profile::operator==( const Profile& prof ) { | |||
21 | 21 | ||
22 | return false; | 22 | return false; |
23 | } | 23 | } |
24 | Profile &Profile::operator=( const Profile& prof ) { | 24 | Profile &Profile::operator=( const Profile& prof ) { |
25 | m_name = prof.m_name; | 25 | m_name = prof.m_name; |
26 | m_ioLayer = prof.m_ioLayer; | 26 | m_ioLayer = prof.m_ioLayer; |
27 | m_autoConnect = prof.m_autoConnect; | ||
27 | m_back = prof.m_back; | 28 | m_back = prof.m_back; |
28 | m_fore = prof.m_fore; | 29 | m_fore = prof.m_fore; |
29 | m_terminal = prof.m_terminal; | 30 | m_terminal = prof.m_terminal; |
30 | m_conf = prof.m_conf; | 31 | m_conf = prof.m_conf; |
31 | m_term = prof.m_term; | 32 | m_term = prof.m_term; |
32 | 33 | ||
@@ -43,12 +44,16 @@ QString Profile::name()const { | |||
43 | QCString Profile::ioLayerName()const { | 44 | QCString Profile::ioLayerName()const { |
44 | return m_ioLayer; | 45 | return m_ioLayer; |
45 | } | 46 | } |
46 | QCString Profile::terminalName( )const { | 47 | QCString Profile::terminalName( )const { |
47 | return m_term; | 48 | return m_term; |
48 | } | 49 | } |
50 | bool Profile::autoConnect()const { | ||
51 | |||
52 | return m_autoConnect; | ||
53 | } | ||
49 | int Profile::foreground()const { | 54 | int Profile::foreground()const { |
50 | return m_fore; | 55 | return m_fore; |
51 | } | 56 | } |
52 | int Profile::background()const { | 57 | int Profile::background()const { |
53 | return m_back; | 58 | return m_back; |
54 | } | 59 | } |
@@ -61,12 +66,16 @@ void Profile::setName( const QString& str ) { | |||
61 | void Profile::setIOLayer( const QCString& name ) { | 66 | void Profile::setIOLayer( const QCString& name ) { |
62 | m_ioLayer = name; | 67 | m_ioLayer = name; |
63 | } | 68 | } |
64 | void Profile::setTerminalName( const QCString& str ) { | 69 | void Profile::setTerminalName( const QCString& str ) { |
65 | m_term = str; | 70 | m_term = str; |
66 | } | 71 | } |
72 | void Profile::setAutoConnect( const bool c) { | ||
73 | |||
74 | m_autoConnect = c; | ||
75 | } | ||
67 | void Profile::setBackground( int back ) { | 76 | void Profile::setBackground( int back ) { |
68 | m_back = back; | 77 | m_back = back; |
69 | } | 78 | } |
70 | void Profile::setForeground( int fore ) { | 79 | void Profile::setForeground( int fore ) { |
71 | m_fore = fore; | 80 | m_fore = fore; |
72 | } | 81 | } |