author | zecke <zecke> | 2002-09-28 18:29:02 (UTC) |
---|---|---|
committer | zecke <zecke> | 2002-09-28 18:29:02 (UTC) |
commit | bc88219d0a9cf935d90c88fe75e238e86c675937 (patch) (unidiff) | |
tree | 0121d1d3d881cf69948f3faf420a71d894dd6832 /noncore/apps/opie-console/profile.cpp | |
parent | 18d575d0ee47a0700091de81bc3e8c54be4eae18 (diff) | |
download | opie-bc88219d0a9cf935d90c88fe75e238e86c675937.zip opie-bc88219d0a9cf935d90c88fe75e238e86c675937.tar.gz opie-bc88219d0a9cf935d90c88fe75e238e86c675937.tar.bz2 |
io_layer take Profile instead of Config
Profile added including some Config like stuff
io_serial getBaud -> baud
a default for gcc3 later
tabdwidget will be our central widget
profileconfig I needed groups() and clearAll
that's pretty much it
Diffstat (limited to 'noncore/apps/opie-console/profile.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-console/profile.cpp | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/noncore/apps/opie-console/profile.cpp b/noncore/apps/opie-console/profile.cpp new file mode 100644 index 0000000..b730218 --- a/dev/null +++ b/noncore/apps/opie-console/profile.cpp | |||
@@ -0,0 +1,59 @@ | |||
1 | #include "profile.h" | ||
2 | |||
3 | Profile::Profile() { | ||
4 | |||
5 | } | ||
6 | Profile::Profile( const QString& name, | ||
7 | const QString& iolayerName, | ||
8 | int background, | ||
9 | int foreground, | ||
10 | int terminal ) | ||
11 | : m_name( name ), m_ioLayer( iolayerName ), m_back( background ), | ||
12 | m_fore( foreground ), m_terminal( terminal ) | ||
13 | { | ||
14 | } | ||
15 | Profile::Profile( const Profile& prof ) | ||
16 | { | ||
17 | (*this) = prof; | ||
18 | } | ||
19 | Profile &Profile::operator=( const Profile& prof ) { | ||
20 | m_name = prof.m_name; | ||
21 | m_ioLayer = prof.m_ioLayer; | ||
22 | m_back = prof.m_back; | ||
23 | m_fore = prof.m_fore; | ||
24 | m_terminal = prof.m_terminal; | ||
25 | |||
26 | return *this; | ||
27 | } | ||
28 | Profile::~Profile() { | ||
29 | } | ||
30 | QString Profile::name()const { | ||
31 | return m_name; | ||
32 | } | ||
33 | QString Profile::ioLayerName()const { | ||
34 | return m_ioLayer; | ||
35 | } | ||
36 | int Profile::foreground()const { | ||
37 | return m_fore; | ||
38 | } | ||
39 | int Profile::background()const { | ||
40 | return m_back; | ||
41 | } | ||
42 | int Profile::terminal()const { | ||
43 | return m_terminal; | ||
44 | } | ||
45 | void Profile::setName( const QString& str ) { | ||
46 | m_name = str; | ||
47 | } | ||
48 | void Profile::setIOLayer( const QString& name ) { | ||
49 | m_ioLayer = name; | ||
50 | } | ||
51 | void Profile::setBackground( int back ) { | ||
52 | m_back = back; | ||
53 | } | ||
54 | void Profile::setForeground( int fore ) { | ||
55 | m_fore = fore; | ||
56 | } | ||
57 | void Profile::setTerminal( int term ) { | ||
58 | m_terminal = term; | ||
59 | } | ||