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.cpp11
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{}
15Profile::Profile( const Profile& prof ) 15Profile::Profile( const Profile& prof )
@@ -24,6 +24,7 @@ bool Profile::operator==( const Profile& prof ) {
24Profile &Profile::operator=( const Profile& prof ) { 24Profile &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 {
46QCString Profile::terminalName( )const { 47QCString Profile::terminalName( )const {
47 return m_term; 48 return m_term;
48} 49}
50bool Profile::autoConnect()const {
51
52 return m_autoConnect;
53}
49int Profile::foreground()const { 54int Profile::foreground()const {
50 return m_fore; 55 return m_fore;
51} 56}
@@ -64,6 +69,10 @@ void Profile::setIOLayer( const QCString& name ) {
64void Profile::setTerminalName( const QCString& str ) { 69void Profile::setTerminalName( const QCString& str ) {
65 m_term = str; 70 m_term = str;
66} 71}
72void Profile::setAutoConnect( const bool c) {
73
74 m_autoConnect = c;
75}
67void Profile::setBackground( int back ) { 76void Profile::setBackground( int back ) {
68 m_back = back; 77 m_back = back;
69} 78}