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
@@ -6,13 +6,13 @@ Profile::Profile() {
6Profile::Profile( const QString& name, 6Profile::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{}
15Profile::Profile( const Profile& prof ) 15Profile::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}
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;
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 {
43QCString Profile::ioLayerName()const { 44QCString Profile::ioLayerName()const {
44 return m_ioLayer; 45 return m_ioLayer;
45} 46}
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}
52int Profile::background()const { 57int Profile::background()const {
53 return m_back; 58 return m_back;
54} 59}
@@ -61,12 +66,16 @@ void Profile::setName( const QString& str ) {
61void Profile::setIOLayer( const QCString& name ) { 66void Profile::setIOLayer( const QCString& name ) {
62 m_ioLayer = name; 67 m_ioLayer = name;
63} 68}
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}
70void Profile::setForeground( int fore ) { 79void Profile::setForeground( int fore ) {
71 m_fore = fore; 80 m_fore = fore;
72} 81}