summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-console/profile.cpp
authorhash <hash>2002-10-18 19:50:27 (UTC)
committer hash <hash>2002-10-18 19:50:27 (UTC)
commitbb98ac35db9807efbcc1b59dd8abbdb05ad7656b (patch) (side-by-side diff)
tree60f83f4c10c68da1ca7641b26b91b8970ef0eaa3 /noncore/apps/opie-console/profile.cpp
parent081001a515f23626b6299e39af4511f36db46d07 (diff)
downloadopie-bb98ac35db9807efbcc1b59dd8abbdb05ad7656b.zip
opie-bb98ac35db9807efbcc1b59dd8abbdb05ad7656b.tar.gz
opie-bb98ac35db9807efbcc1b59dd8abbdb05ad7656b.tar.bz2
added autoconnect support. feel free to revert if i messed something up.
Diffstat (limited to 'noncore/apps/opie-console/profile.cpp') (more/less context) (ignore 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,
int background,
int foreground,
int terminal )
- : m_name( name ), m_ioLayer( iolayerName ), m_term( termName),
+ : m_name( name ), m_ioLayer( iolayerName ), m_term( termName), m_autoConnect(0),
m_back( background ), m_fore( foreground ), m_terminal( terminal )
{}
Profile::Profile( const Profile& prof )
@@ -24,6 +24,7 @@ bool Profile::operator==( const Profile& prof ) {
Profile &Profile::operator=( const Profile& prof ) {
m_name = prof.m_name;
m_ioLayer = prof.m_ioLayer;
+ m_autoConnect = prof.m_autoConnect;
m_back = prof.m_back;
m_fore = prof.m_fore;
m_terminal = prof.m_terminal;
@@ -46,6 +47,10 @@ QCString Profile::ioLayerName()const {
QCString Profile::terminalName( )const {
return m_term;
}
+bool Profile::autoConnect()const {
+
+ return m_autoConnect;
+}
int Profile::foreground()const {
return m_fore;
}
@@ -64,6 +69,10 @@ void Profile::setIOLayer( const QCString& name ) {
void Profile::setTerminalName( const QCString& str ) {
m_term = str;
}
+void Profile::setAutoConnect( const bool c) {
+
+ m_autoConnect = c;
+}
void Profile::setBackground( int back ) {
m_back = back;
}