author | alwin <alwin> | 2004-03-02 12:14:15 (UTC) |
---|---|---|
committer | alwin <alwin> | 2004-03-02 12:14:15 (UTC) |
commit | 0d59c780513da78033f4d9040475dee9db0256d4 (patch) (unidiff) | |
tree | 503d320b4aa3daae9982082e7b34e3e2c48bdfb7 /core/apps/embeddedkonsole/session.cpp | |
parent | a0981652d61776d70f25980f035748b21339e946 (diff) | |
download | opie-0d59c780513da78033f4d9040475dee9db0256d4.zip opie-0d59c780513da78033f4d9040475dee9db0256d4.tar.gz opie-0d59c780513da78033f4d9040475dee9db0256d4.tar.bz2 |
run the optimize_connect script
the whole cvs is tagged with "before_optimize_connect" if there are problems you
can check the diff (but it had compiled and run here)
Diffstat (limited to 'core/apps/embeddedkonsole/session.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/apps/embeddedkonsole/session.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/core/apps/embeddedkonsole/session.cpp b/core/apps/embeddedkonsole/session.cpp index 043b8db..a94712a 100644 --- a/core/apps/embeddedkonsole/session.cpp +++ b/core/apps/embeddedkonsole/session.cpp | |||
@@ -30,71 +30,71 @@ TESession::TESession(QMainWindow* main, TEWidget* _te, const char* _pgm, QStrLis | |||
30 | // sh = new TEPty(); | 30 | // sh = new TEPty(); |
31 | sh = new MyPty(); | 31 | sh = new MyPty(); |
32 | em = new TEmuVt102(te); | 32 | em = new TEmuVt102(te); |
33 | 33 | ||
34 | sh->setSize(te->Lines(),te->Columns()); // not absolutely nessesary | 34 | sh->setSize(te->Lines(),te->Columns()); // not absolutely nessesary |
35 | QObject::connect( sh,SIGNAL(block_in(const char*,int)), | 35 | QObject::connect( sh,SIGNAL(block_in(const char*,int)), |
36 | em,SLOT(onRcvBlock(const char*,int)) ); | 36 | em,SLOT(onRcvBlock(const char*,int)) ); |
37 | QObject::connect( em,SIGNAL(ImageSizeChanged(int,int)), | 37 | QObject::connect( em,SIGNAL(ImageSizeChanged(int,int)), |
38 | sh,SLOT(setSize(int,int))); | 38 | sh,SLOT(setSize(int,int))); |
39 | 39 | ||
40 | // 'main' should do those connects itself, somehow. | 40 | // 'main' should do those connects itself, somehow. |
41 | // These aren't KTMW's slots, but konsole's.(David) | 41 | // These aren't KTMW's slots, but konsole's.(David) |
42 | 42 | ||
43 | /* | 43 | /* |
44 | QObject::connect( em,SIGNAL(ImageSizeChanged(int,int)), | 44 | QObject::connect( em,SIGNAL(ImageSizeChanged(int,int)), |
45 | main,SLOT(notifySize(int,int))); | 45 | main,SLOT(notifySize(int,int))); |
46 | */ | 46 | */ |
47 | QObject::connect( em,SIGNAL(sndBlock(const char*,int)), | 47 | QObject::connect( em,SIGNAL(sndBlock(const char*,int)), |
48 | sh,SLOT(send_bytes(const char*,int)) ); | 48 | sh,SLOT(send_bytes(const char*,int)) ); |
49 | QObject::connect( em,SIGNAL(changeColumns(int)), | 49 | QObject::connect( em,SIGNAL(changeColumns(int)), |
50 | main,SLOT(changeColumns(int)) ); | 50 | main,SLOT(changeColumns(int)) ); |
51 | 51 | ||
52 | 52 | ||
53 | 53 | ||
54 | QObject::connect( em,SIGNAL(changeTitle(int, const QString&)), | 54 | QObject::connect( em,SIGNAL(changeTitle(int,const QString&)), |
55 | this,SLOT(changeTitle(int, const QString&)) ); | 55 | this,SLOT(changeTitle(int,const QString&)) ); |
56 | 56 | ||
57 | QObject::connect( sh,SIGNAL(done(int)), this,SLOT(done(int)) ); | 57 | QObject::connect( sh,SIGNAL(done(int)), this,SLOT(done(int)) ); |
58 | } | 58 | } |
59 | 59 | ||
60 | 60 | ||
61 | 61 | ||
62 | void TESession::run() | 62 | void TESession::run() |
63 | { | 63 | { |
64 | //kdDebug() << "Running the session!" << pgm << "\n"; | 64 | //kdDebug() << "Running the session!" << pgm << "\n"; |
65 | sh->run(pgm,args,term.data(),FALSE); | 65 | sh->run(pgm,args,term.data(),FALSE); |
66 | } | 66 | } |
67 | 67 | ||
68 | void TESession::kill(int ) // signal) | 68 | void TESession::kill(int ) // signal) |
69 | { | 69 | { |
70 | // sh->kill(signal); | 70 | // sh->kill(signal); |
71 | } | 71 | } |
72 | 72 | ||
73 | TESession::~TESession() | 73 | TESession::~TESession() |
74 | { | 74 | { |
75 | QObject::disconnect( sh, SIGNAL( done( int ) ), | 75 | QObject::disconnect( sh, SIGNAL( done(int) ), |
76 | this, SLOT( done( int ) ) ); | 76 | this, SLOT( done(int) ) ); |
77 | delete em; | 77 | delete em; |
78 | delete sh; | 78 | delete sh; |
79 | } | 79 | } |
80 | 80 | ||
81 | void TESession::setConnect(bool c) | 81 | void TESession::setConnect(bool c) |
82 | { | 82 | { |
83 | em->setConnect(c); | 83 | em->setConnect(c); |
84 | } | 84 | } |
85 | 85 | ||
86 | void TESession::done(int status) | 86 | void TESession::done(int status) |
87 | { | 87 | { |
88 | emit done(te,status); | 88 | emit done(te,status); |
89 | } | 89 | } |
90 | 90 | ||
91 | void TESession::terminate() | 91 | void TESession::terminate() |
92 | { | 92 | { |
93 | delete this; | 93 | delete this; |
94 | } | 94 | } |
95 | 95 | ||
96 | TEmulation* TESession::getEmulation() | 96 | TEmulation* TESession::getEmulation() |
97 | { | 97 | { |
98 | return em; | 98 | return em; |
99 | } | 99 | } |
100 | 100 | ||