-rw-r--r-- | noncore/apps/opie-console/PLANS | 35 | ||||
-rw-r--r-- | noncore/apps/opie-console/profile.h | 2 |
2 files changed, 36 insertions, 1 deletions
diff --git a/noncore/apps/opie-console/PLANS b/noncore/apps/opie-console/PLANS index dae417f..afcb04c 100644 --- a/noncore/apps/opie-console/PLANS +++ b/noncore/apps/opie-console/PLANS | |||
@@ -1,5 +1,40 @@ | |||
1 | Shall we write what the plans are here? | 1 | Shall we write what the plans are here? |
2 | Ok I'll do | ||
2 | 3 | ||
3 | I think we sould take the TE* stuff from embeddedconsole and use them for the | 4 | I think we sould take the TE* stuff from embeddedconsole and use them for the |
4 | TE here. TE isn't going to be easy starting from scratch. If nobody is doing | 5 | TE here. TE isn't going to be easy starting from scratch. If nobody is doing |
5 | TE yet, i'll try to port that stuff over here. -hash | 6 | TE yet, i'll try to port that stuff over here. -hash |
7 | ibotty is doing it. | ||
8 | |||
9 | From a UNIX point of view we want to do something like minicom | ||
10 | with a better GUI. | ||
11 | It should feature some terminal emulation vt100/102, ansi, | ||
12 | filetransfer via {x,y,z}modem, and some sort of session management. | ||
13 | Besides this requirement we would like to be able to execute 'scripts' | ||
14 | in a session. | ||
15 | A script would just write to the TEmulation and then be sent via | ||
16 | an IOlayer. | ||
17 | Then we would like to send keys? Do we want that? | ||
18 | |||
19 | We want a modular architecture which might support plugins in | ||
20 | the future | ||
21 | |||
22 | (Almost) DONE: | ||
23 | Framework | ||
24 | Serial IOLayer | ||
25 | Saving and Restoring Profiles | ||
26 | |||
27 | TASKS in progress: | ||
28 | Profile->Session and MainWidget --- Harlekin | ||
29 | FilesendingLayer - hash | ||
30 | IOLayer - wazlaf | ||
31 | Configuration - josef | ||
32 | TE - ibotty | ||
33 | |||
34 | OPEN tasks: | ||
35 | Session->Profile - open | ||
36 | Scripting - open | ||
37 | Keys - open | ||
38 | IRDA-Layer - open | ||
39 | Bluetooth-Layer - open | ||
40 | FilesendingUI - open \ No newline at end of file | ||
diff --git a/noncore/apps/opie-console/profile.h b/noncore/apps/opie-console/profile.h index 9956bdb..5652ac5 100644 --- a/noncore/apps/opie-console/profile.h +++ b/noncore/apps/opie-console/profile.h | |||
@@ -1,68 +1,68 @@ | |||
1 | #ifndef OPIE_PROFILE_H | 1 | #ifndef OPIE_PROFILE_H |
2 | #define OPIE_PROFILE_H | 2 | #define OPIE_PROFILE_H |
3 | 3 | ||
4 | #include <qmap.h> | 4 | #include <qmap.h> |
5 | #include <qstring.h> | 5 | #include <qstring.h> |
6 | #include <qstringlist.h> | 6 | #include <qstringlist.h> |
7 | #include <qvaluelist.h> | 7 | #include <qvaluelist.h> |
8 | /** | 8 | /** |
9 | * A session will be generated from a saved | 9 | * A session will be generated from a saved |
10 | * profile. A profile contains the iolayername | 10 | * profile. A profile contains the iolayername |
11 | * a name. | 11 | * a name. |
12 | * We can generate a Session from a Profile | 12 | * We can generate a Session from a Profile |
13 | * No configuration is contained here.... | 13 | * Configuration is contained here too |
14 | */ | 14 | */ |
15 | class Profile { | 15 | class Profile { |
16 | public: | 16 | public: |
17 | typedef QValueList<Profile> ValueList; | 17 | typedef QValueList<Profile> ValueList; |
18 | enum Color { Black = 0, | 18 | enum Color { Black = 0, |
19 | White, | 19 | White, |
20 | Gray }; | 20 | Gray }; |
21 | enum Terminal {VT102 = 0 }; | 21 | enum Terminal {VT102 = 0 }; |
22 | enum Font { Micro = 0, Small, Medium }; | 22 | enum Font { Micro = 0, Small, Medium }; |
23 | Profile(); | 23 | Profile(); |
24 | Profile( const QString& name, | 24 | Profile( const QString& name, |
25 | const QString& iolayerName, | 25 | const QString& iolayerName, |
26 | int background, | 26 | int background, |
27 | int foreground, | 27 | int foreground, |
28 | int terminal); | 28 | int terminal); |
29 | Profile( const Profile& ); | 29 | Profile( const Profile& ); |
30 | Profile &operator=( const Profile& ); | 30 | Profile &operator=( const Profile& ); |
31 | bool operator==( const Profile& prof ); | 31 | bool operator==( const Profile& prof ); |
32 | 32 | ||
33 | ~Profile(); | 33 | ~Profile(); |
34 | QString name()const; | 34 | QString name()const; |
35 | QString ioLayerName()const; | 35 | QString ioLayerName()const; |
36 | int foreground()const; | 36 | int foreground()const; |
37 | int background()const; | 37 | int background()const; |
38 | int terminal()const; | 38 | int terminal()const; |
39 | 39 | ||
40 | /* | 40 | /* |
41 | * config stuff | 41 | * config stuff |
42 | */ | 42 | */ |
43 | QMap<QString, QString> conf()const; | 43 | QMap<QString, QString> conf()const; |
44 | void clearConf(); | 44 | void clearConf(); |
45 | void writeEntry( const QString& key, const QString& value ); | 45 | void writeEntry( const QString& key, const QString& value ); |
46 | void writeEntry( const QString& key, int num ); | 46 | void writeEntry( const QString& key, int num ); |
47 | void writeEntry( const QString& key, bool b ); | 47 | void writeEntry( const QString& key, bool b ); |
48 | void writeEntry( const QString& key, const QStringList&, const QChar& ); | 48 | void writeEntry( const QString& key, const QStringList&, const QChar& ); |
49 | QString readEntry( const QString& key, const QString& deflt = QString::null)const; | 49 | QString readEntry( const QString& key, const QString& deflt = QString::null)const; |
50 | int readNumEntry( const QString& key, int = -1 )const; | 50 | int readNumEntry( const QString& key, int = -1 )const; |
51 | bool readBoolEntry( const QString& key, bool = FALSE )const; | 51 | bool readBoolEntry( const QString& key, bool = FALSE )const; |
52 | 52 | ||
53 | void setName( const QString& ); | 53 | void setName( const QString& ); |
54 | void setIOLayer( const QString& ); | 54 | void setIOLayer( const QString& ); |
55 | void setBackground( int back ); | 55 | void setBackground( int back ); |
56 | void setForeground( int fore ); | 56 | void setForeground( int fore ); |
57 | void setTerminal( int term ); | 57 | void setTerminal( int term ); |
58 | void setConf( const QMap<QString, QString>& ); | 58 | void setConf( const QMap<QString, QString>& ); |
59 | private: | 59 | private: |
60 | QMap<QString, QString> m_conf; | 60 | QMap<QString, QString> m_conf; |
61 | QString m_name; | 61 | QString m_name; |
62 | QString m_ioLayer; | 62 | QString m_ioLayer; |
63 | int m_back; | 63 | int m_back; |
64 | int m_fore; | 64 | int m_fore; |
65 | int m_terminal; | 65 | int m_terminal; |
66 | }; | 66 | }; |
67 | 67 | ||
68 | #endif | 68 | #endif |