Diffstat (limited to 'noncore/apps/opie-console/profile.cpp') (more/less context) (ignore 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 | |||
@@ -9,7 +9,7 @@ Profile::Profile( const QString& name, | |||
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 ) |
@@ -24,6 +24,7 @@ bool Profile::operator==( const Profile& prof ) { | |||
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; |
@@ -46,6 +47,10 @@ QCString Profile::ioLayerName()const { | |||
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 | } |
@@ -64,6 +69,10 @@ void Profile::setIOLayer( const QCString& name ) { | |||
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 | } |