-rw-r--r-- | noncore/tools/remote/Makefile | 431 | ||||
-rw-r--r-- | noncore/tools/remote/Makefile.in | 325 | ||||
-rw-r--r-- | noncore/tools/remote/learntab.cpp | 6 |
3 files changed, 3 insertions, 759 deletions
diff --git a/noncore/tools/remote/Makefile b/noncore/tools/remote/Makefile deleted file mode 100644 index 68b388b..0000000 --- a/noncore/tools/remote/Makefile +++ b/dev/null | |||
@@ -1,431 +0,0 @@ | |||
1 | ############################################################################# | ||
2 | # Automatically generated from noncore/tools/remote/Makefile.in | ||
3 | # Build options from | ||
4 | ############################################################################# | ||
5 | |||
6 | # Compiling | ||
7 | INTERFACE_DECL_PATH = . | ||
8 | SYSCONF_CXX = arm-linux-g++ | ||
9 | SYSCONF_CC = arm-linux-gcc | ||
10 | DASHCROSS = -arm | ||
11 | |||
12 | # Compiling with support libraries | ||
13 | SYSCONF_CXXFLAGS_X11= | ||
14 | SYSCONF_CXXFLAGS_QT= -I$(QTDIR)/include | ||
15 | SYSCONF_CXXFLAGS_OPENGL= -I/usr/X11R6/include | ||
16 | |||
17 | # Compiling YACC output | ||
18 | SYSCONF_CXXFLAGS_YACC = -Wno-unused -Wno-parentheses | ||
19 | |||
20 | # Linking with support libraries | ||
21 | SYSCONF_RPATH_X11= | ||
22 | SYSCONF_RPATH_QT= -Wl,-rpath,$(QTDIR)/lib | ||
23 | SYSCONF_RPATH_OPENGL= -Wl,-rpath,/usr/X11R6/lib | ||
24 | |||
25 | # Linking with support libraries | ||
26 | # X11 | ||
27 | SYSCONF_LFLAGS_X11= | ||
28 | SYSCONF_LIBS_X11= | ||
29 | # Qt, Qt+OpenGL | ||
30 | SYSCONF_LFLAGS_QT= -L$(QTDIR)/lib | ||
31 | SYSCONF_LIBS_QT = -lqte$(QT_THREAD_SUFFIX) | ||
32 | SYSCONF_LIBS_QT_OPENGL= | ||
33 | # OpenGL | ||
34 | SYSCONF_LFLAGS_OPENGL= -L/usr/X11R6/lib | ||
35 | SYSCONF_LIBS_OPENGL= | ||
36 | # Yacc | ||
37 | SYSCONF_LIBS_YACC= | ||
38 | |||
39 | # Linking applications | ||
40 | SYSCONF_LINK = arm-linux-gcc | ||
41 | SYSCONF_LFLAGS = | ||
42 | SYSCONF_LIBS = | ||
43 | |||
44 | # Link flags for shared objects | ||
45 | SYSCONF_LFLAGS_SHOBJ= -shared | ||
46 | |||
47 | # Flags for threading | ||
48 | SYSCONF_CFLAGS_THREAD= -D_REENTRANT | ||
49 | SYSCONF_CXXFLAGS_THREAD= -D_REENTRANT | ||
50 | SYSCONF_LFLAGS_THREAD= | ||
51 | SYSCONF_LIBS_THREAD= -lpthread | ||
52 | |||
53 | # Meta-object compiler | ||
54 | SYSCONF_MOC = $(QTDIR)/bin/moc | ||
55 | |||
56 | # UI compiler | ||
57 | SYSCONF_UIC = $(QTDIR)/bin/uic | ||
58 | |||
59 | # Linking shared libraries | ||
60 | # - Build the $(TARGET) library, eg. lib$(TARGET).so.2.2.2 | ||
61 | # - Place target in $(DESTDIR) - which has a trailing / | ||
62 | # - Usually needs to incorporate $(VER_MAJ), $(VER_MIN) and $(VER_PATCH) | ||
63 | # | ||
64 | SYSCONF_LINK_SHLIB= arm-linux-gcc | ||
65 | SYSCONF_LINK_TARGET_SHARED= lib$(TARGET).so.$(VER_MAJ).$(VER_MIN).$(VER_PATCH) | ||
66 | SYSCONF_LINK_LIB_SHARED= $(SYSCONF_LINK_SHLIB) -shared -Wl,-soname,lib$(TARGET).so.$(VER_MAJ) \ | ||
67 | $(LFLAGS) -o $(SYSCONF_LINK_TARGET_SHARED) \ | ||
68 | $(OBJECTS) $(OBJMOC) $(LIBS) && \ | ||
69 | mv $(SYSCONF_LINK_TARGET_SHARED) $(DESTDIR); \ | ||
70 | cd $(DESTDIR) && \ | ||
71 | rm -f lib$(TARGET).so lib$(TARGET).so.$(VER_MAJ) lib$(TARGET).so.$(VER_MAJ).$(VER_MIN); \ | ||
72 | ln -s $(SYSCONF_LINK_TARGET_SHARED) lib$(TARGET).so; \ | ||
73 | ln -s $(SYSCONF_LINK_TARGET_SHARED) lib$(TARGET).so.$(VER_MAJ); \ | ||
74 | ln -s $(SYSCONF_LINK_TARGET_SHARED) lib$(TARGET).so.$(VER_MAJ).$(VER_MIN) | ||
75 | |||
76 | # Linking static libraries | ||
77 | # - Build the $(TARGET) library, eg. lib$(TARGET).a | ||
78 | # - Place target in $(DESTDIR) - which has a trailing / | ||
79 | # | ||
80 | SYSCONF_AR = arm-linux-ar cqs | ||
81 | SYSCONF_LINK_TARGET_STATIC = lib$(TARGET).a | ||
82 | SYSCONF_LINK_LIB_STATIC= rm -f $(DESTDIR)$(SYSCONF_LINK_TARGET_STATIC) ; \ | ||
83 | $(SYSCONF_AR) $(DESTDIR)$(SYSCONF_LINK_TARGET_STATIC) $(OBJECTS) $(OBJMOC) | ||
84 | # Compiling application source | ||
85 | SYSCONF_CXXFLAGS= -pipe -DQT_QWS_IPAQ -DQWS -fno-exceptions -fno-rtti -O2 -Wall -W | ||
86 | SYSCONF_CFLAGS = -pipe -O2 -Wall -W | ||
87 | # Default link type (static linking is still be used where required) | ||
88 | SYSCONF_LINK_LIB= $(SYSCONF_LINK_LIB_SHARED) | ||
89 | SYSCONF_LINK_TARGET= $(SYSCONF_LINK_TARGET_SHARED) | ||
90 | # Compiling library source | ||
91 | SYSCONF_CXXFLAGS_LIB= -fPIC | ||
92 | SYSCONF_CFLAGS_LIB= -fPIC | ||
93 | # Compiling shared-object source | ||
94 | SYSCONF_CXXFLAGS_SHOBJ= -fPIC | ||
95 | SYSCONF_CFLAGS_SHOBJ= -fPIC | ||
96 | # Linking Qt | ||
97 | SYSCONF_LIBS_QTLIB= $(SYSCONF_LFLAGS_X11) $(QT_LIBS_MT) $(QT_LIBS_OPT) | ||
98 | # Linking Qt applications | ||
99 | SYSCONF_LIBS_QTAPP= | ||
100 | ############################################################################# | ||
101 | |||
102 | ####### Compiler, tools and options | ||
103 | |||
104 | CXX =$(SYSCONF_CXX) $(QT_CXX_MT) | ||
105 | CXXFLAGS=$(SYSCONF_CXXFLAGS_QT) $(SYSCONF_CXXFLAGS) | ||
106 | CC =$(SYSCONF_CC) $(QT_C_MT) | ||
107 | CFLAGS =$(SYSCONF_CFLAGS) | ||
108 | INCPATH =-I$(OPIEDIR)/include | ||
109 | LFLAGS =$(SYSCONF_LFLAGS_QT) $(SYSCONF_RPATH_QT) $(SYSCONF_LFLAGS) $(QT_LFLAGS_MT) | ||
110 | LIBS =$(SUBLIBS) -lqpe -lopie $(SYSCONF_LIBS_QT) $(SYSCONF_LIBS) $(SYSCONF_LIBS_QTAPP) | ||
111 | MOC =$(SYSCONF_MOC) | ||
112 | UIC =$(SYSCONF_UIC) | ||
113 | |||
114 | ####### Target | ||
115 | |||
116 | DESTDIR = $(OPIEDIR)/bin/ | ||
117 | VER_MAJ = 1 | ||
118 | VER_MIN = 0 | ||
119 | VER_PATCH = 0 | ||
120 | TARGET= remote | ||
121 | TARGET1 = lib$(TARGET).so.$(VER_MAJ) | ||
122 | |||
123 | ####### Files | ||
124 | |||
125 | HEADERS =remotetab.h \ | ||
126 | learntab.h \ | ||
127 | configtab.h \ | ||
128 | topgroup.h \ | ||
129 | dvdgroup.h \ | ||
130 | channelgroup.h \ | ||
131 | vcrgroup.h \ | ||
132 | buttondialog.h \ | ||
133 | topgroupconf.h \ | ||
134 | dvdgroupconf.h \ | ||
135 | channelgroupconf.h \ | ||
136 | vcrgroupconf.h \ | ||
137 | mainview.h \ | ||
138 | recorddialog.h \ | ||
139 | helptab.h | ||
140 | SOURCES =remote.cpp \ | ||
141 | remotetab.cpp \ | ||
142 | learntab.cpp \ | ||
143 | configtab.cpp \ | ||
144 | topgroup.cpp \ | ||
145 | dvdgroup.cpp \ | ||
146 | channelgroup.cpp \ | ||
147 | vcrgroup.cpp \ | ||
148 | buttondialog.cpp \ | ||
149 | topgroupconf.cpp \ | ||
150 | dvdgroupconf.cpp \ | ||
151 | channelgroupconf.cpp \ | ||
152 | vcrgroupconf.cpp \ | ||
153 | mainview.cpp \ | ||
154 | recorddialog.cpp \ | ||
155 | helptab.cpp | ||
156 | OBJECTS =remote.o \ | ||
157 | remotetab.o \ | ||
158 | learntab.o \ | ||
159 | configtab.o \ | ||
160 | topgroup.o \ | ||
161 | dvdgroup.o \ | ||
162 | channelgroup.o \ | ||
163 | vcrgroup.o \ | ||
164 | buttondialog.o \ | ||
165 | topgroupconf.o \ | ||
166 | dvdgroupconf.o \ | ||
167 | channelgroupconf.o \ | ||
168 | vcrgroupconf.o \ | ||
169 | mainview.o \ | ||
170 | recorddialog.o \ | ||
171 | helptab.o | ||
172 | INTERFACES = | ||
173 | UICDECLS = | ||
174 | UICIMPLS = | ||
175 | SRCMOC =moc_remotetab.cpp \ | ||
176 | moc_learntab.cpp \ | ||
177 | moc_configtab.cpp \ | ||
178 | moc_buttondialog.cpp \ | ||
179 | moc_mainview.cpp \ | ||
180 | moc_recorddialog.cpp | ||
181 | OBJMOC =moc_remotetab.o \ | ||
182 | moc_learntab.o \ | ||
183 | moc_configtab.o \ | ||
184 | moc_buttondialog.o \ | ||
185 | moc_mainview.o \ | ||
186 | moc_recorddialog.o | ||
187 | |||
188 | |||
189 | ####### Implicit rules | ||
190 | |||
191 | .SUFFIXES: .cpp .cxx .cc .C .c | ||
192 | |||
193 | .cpp.o: | ||
194 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< | ||
195 | |||
196 | .cxx.o: | ||
197 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< | ||
198 | |||
199 | .cc.o: | ||
200 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< | ||
201 | |||
202 | .C.o: | ||
203 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< | ||
204 | |||
205 | .c.o: | ||
206 | $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $< | ||
207 | |||
208 | ####### Build rules | ||
209 | |||
210 | |||
211 | all: $(DESTDIR)$(TARGET) | ||
212 | |||
213 | $(DESTDIR)$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) $(SUBLIBS) | ||
214 | $(SYSCONF_LINK) $(LFLAGS) -o $(DESTDIR)$(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS) | ||
215 | |||
216 | moc: $(SRCMOC) | ||
217 | |||
218 | tmake: | ||
219 | tmake remote.pro | ||
220 | |||
221 | clean: | ||
222 | -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) | ||
223 | -rm -f *~ core | ||
224 | -rm -f allmoc.cpp | ||
225 | |||
226 | ####### Extension Modules | ||
227 | |||
228 | listpromodules: | ||
229 | @echo | ||
230 | |||
231 | listallmodules: | ||
232 | @echo | ||
233 | |||
234 | listaddonpromodules: | ||
235 | @echo | ||
236 | |||
237 | listaddonentmodules: | ||
238 | @echo | ||
239 | |||
240 | |||
241 | REQUIRES= | ||
242 | |||
243 | ####### Sub-libraries | ||
244 | |||
245 | |||
246 | ###### Combined headers | ||
247 | |||
248 | |||
249 | |||
250 | ####### Compile | ||
251 | |||
252 | remote.o: remote.cpp \ | ||
253 | $(OPIEDIR)/include/qpe/qpeapplication.h \ | ||
254 | $(OPIEDIR)/include/qpe/resource.h \ | ||
255 | $(OPIEDIR)/include/qpe/config.h \ | ||
256 | mainview.h \ | ||
257 | remotetab.h \ | ||
258 | topgroup.h \ | ||
259 | dvdgroup.h \ | ||
260 | channelgroup.h \ | ||
261 | vcrgroup.h \ | ||
262 | learntab.h \ | ||
263 | recorddialog.h \ | ||
264 | $(OPIEDIR)/include/opie/oprocess.h \ | ||
265 | configtab.h \ | ||
266 | buttondialog.h \ | ||
267 | channelgroupconf.h \ | ||
268 | dvdgroupconf.h \ | ||
269 | topgroupconf.h \ | ||
270 | vcrgroupconf.h \ | ||
271 | helptab.h | ||
272 | |||
273 | remotetab.o: remotetab.cpp \ | ||
274 | remotetab.h \ | ||
275 | $(OPIEDIR)/include/qpe/config.h \ | ||
276 | topgroup.h \ | ||
277 | dvdgroup.h \ | ||
278 | $(OPIEDIR)/include/qpe/resource.h \ | ||
279 | channelgroup.h \ | ||
280 | vcrgroup.h | ||
281 | |||
282 | learntab.o: learntab.cpp \ | ||
283 | learntab.h \ | ||
284 | recorddialog.h \ | ||
285 | $(OPIEDIR)/include/opie/oprocess.h | ||
286 | |||
287 | configtab.o: configtab.cpp \ | ||
288 | configtab.h \ | ||
289 | $(OPIEDIR)/include/qpe/config.h \ | ||
290 | buttondialog.h \ | ||
291 | channelgroupconf.h \ | ||
292 | dvdgroupconf.h \ | ||
293 | topgroupconf.h \ | ||
294 | vcrgroupconf.h | ||
295 | |||
296 | topgroup.o: topgroup.cpp \ | ||
297 | topgroup.h \ | ||
298 | $(OPIEDIR)/include/qpe/config.h | ||
299 | |||
300 | dvdgroup.o: dvdgroup.cpp \ | ||
301 | dvdgroup.h \ | ||
302 | $(OPIEDIR)/include/qpe/resource.h | ||
303 | |||
304 | channelgroup.o: channelgroup.cpp \ | ||
305 | channelgroup.h | ||
306 | |||
307 | vcrgroup.o: vcrgroup.cpp \ | ||
308 | vcrgroup.h \ | ||
309 | $(OPIEDIR)/include/qpe/resource.h | ||
310 | |||
311 | buttondialog.o: buttondialog.cpp \ | ||
312 | buttondialog.h | ||
313 | |||
314 | topgroupconf.o: topgroupconf.cpp \ | ||
315 | topgroupconf.h \ | ||
316 | $(OPIEDIR)/include/qpe/config.h | ||
317 | |||
318 | dvdgroupconf.o: dvdgroupconf.cpp \ | ||
319 | dvdgroupconf.h | ||
320 | |||
321 | channelgroupconf.o: channelgroupconf.cpp \ | ||
322 | channelgroupconf.h | ||
323 | |||
324 | vcrgroupconf.o: vcrgroupconf.cpp \ | ||
325 | vcrgroupconf.h | ||
326 | |||
327 | mainview.o: mainview.cpp \ | ||
328 | mainview.h \ | ||
329 | $(OPIEDIR)/include/qpe/qpeapplication.h \ | ||
330 | $(OPIEDIR)/include/qpe/resource.h \ | ||
331 | $(OPIEDIR)/include/qpe/config.h \ | ||
332 | remotetab.h \ | ||
333 | topgroup.h \ | ||
334 | dvdgroup.h \ | ||
335 | channelgroup.h \ | ||
336 | vcrgroup.h \ | ||
337 | learntab.h \ | ||
338 | recorddialog.h \ | ||
339 | $(OPIEDIR)/include/opie/oprocess.h \ | ||
340 | configtab.h \ | ||
341 | buttondialog.h \ | ||
342 | channelgroupconf.h \ | ||
343 | dvdgroupconf.h \ | ||
344 | topgroupconf.h \ | ||
345 | vcrgroupconf.h \ | ||
346 | helptab.h | ||
347 | |||
348 | recorddialog.o: recorddialog.cpp \ | ||
349 | recorddialog.h \ | ||
350 | $(OPIEDIR)/include/opie/oprocess.h | ||
351 | |||
352 | helptab.o: helptab.cpp \ | ||
353 | helptab.h | ||
354 | |||
355 | moc_remotetab.o: moc_remotetab.cpp \ | ||
356 | remotetab.h \ | ||
357 | $(OPIEDIR)/include/qpe/config.h \ | ||
358 | topgroup.h \ | ||
359 | dvdgroup.h \ | ||
360 | $(OPIEDIR)/include/qpe/resource.h \ | ||
361 | channelgroup.h \ | ||
362 | vcrgroup.h | ||
363 | |||
364 | moc_learntab.o: moc_learntab.cpp \ | ||
365 | learntab.h \ | ||
366 | recorddialog.h \ | ||
367 | $(OPIEDIR)/include/opie/oprocess.h | ||
368 | |||
369 | moc_configtab.o: moc_configtab.cpp \ | ||
370 | configtab.h \ | ||
371 | $(OPIEDIR)/include/qpe/config.h \ | ||
372 | buttondialog.h \ | ||
373 | channelgroupconf.h \ | ||
374 | dvdgroupconf.h \ | ||
375 | topgroupconf.h \ | ||
376 | vcrgroupconf.h | ||
377 | |||
378 | moc_buttondialog.o: moc_buttondialog.cpp \ | ||
379 | buttondialog.h | ||
380 | |||
381 | moc_mainview.o: moc_mainview.cpp \ | ||
382 | mainview.h \ | ||
383 | $(OPIEDIR)/include/qpe/qpeapplication.h \ | ||
384 | $(OPIEDIR)/include/qpe/resource.h \ | ||
385 | $(OPIEDIR)/include/qpe/config.h \ | ||
386 | remotetab.h \ | ||
387 | topgroup.h \ | ||
388 | dvdgroup.h \ | ||
389 | channelgroup.h \ | ||
390 | vcrgroup.h \ | ||
391 | learntab.h \ | ||
392 | recorddialog.h \ | ||
393 | $(OPIEDIR)/include/opie/oprocess.h \ | ||
394 | configtab.h \ | ||
395 | buttondialog.h \ | ||
396 | channelgroupconf.h \ | ||
397 | dvdgroupconf.h \ | ||
398 | topgroupconf.h \ | ||
399 | vcrgroupconf.h \ | ||
400 | helptab.h | ||
401 | |||
402 | moc_recorddialog.o: moc_recorddialog.cpp \ | ||
403 | recorddialog.h \ | ||
404 | $(OPIEDIR)/include/opie/oprocess.h | ||
405 | |||
406 | moc_remotetab.cpp: remotetab.h | ||
407 | $(MOC) remotetab.h -o moc_remotetab.cpp | ||
408 | |||
409 | moc_learntab.cpp: learntab.h | ||
410 | $(MOC) learntab.h -o moc_learntab.cpp | ||
411 | |||
412 | moc_configtab.cpp: configtab.h | ||
413 | $(MOC) configtab.h -o moc_configtab.cpp | ||
414 | |||
415 | moc_buttondialog.cpp: buttondialog.h | ||
416 | $(MOC) buttondialog.h -o moc_buttondialog.cpp | ||
417 | |||
418 | moc_mainview.cpp: mainview.h | ||
419 | $(MOC) mainview.h -o moc_mainview.cpp | ||
420 | |||
421 | moc_recorddialog.cpp: recorddialog.h | ||
422 | $(MOC) recorddialog.h -o moc_recorddialog.cpp | ||
423 | |||
424 | |||
425 | |||
426 | lupdate: | ||
427 | lupdate remote.pro | ||
428 | |||
429 | lrelease: | ||
430 | lrelease remote.pro | ||
431 | |||
diff --git a/noncore/tools/remote/Makefile.in b/noncore/tools/remote/Makefile.in deleted file mode 100644 index 631c999..0000000 --- a/noncore/tools/remote/Makefile.in +++ b/dev/null | |||
@@ -1,325 +0,0 @@ | |||
1 | ############################################################################# | ||
2 | |||
3 | ####### Compiler, tools and options | ||
4 | |||
5 | CXX =$(SYSCONF_CXX) $(QT_CXX_MT) | ||
6 | CXXFLAGS=$(SYSCONF_CXXFLAGS_QT) $(SYSCONF_CXXFLAGS) | ||
7 | CC =$(SYSCONF_CC) $(QT_C_MT) | ||
8 | CFLAGS =$(SYSCONF_CFLAGS) | ||
9 | INCPATH =-I$(OPIEDIR)/include | ||
10 | LFLAGS =$(SYSCONF_LFLAGS_QT) $(SYSCONF_RPATH_QT) $(SYSCONF_LFLAGS) $(QT_LFLAGS_MT) | ||
11 | LIBS =$(SUBLIBS) -lqpe -lopie $(SYSCONF_LIBS_QT) $(SYSCONF_LIBS) $(SYSCONF_LIBS_QTAPP) | ||
12 | MOC =$(SYSCONF_MOC) | ||
13 | UIC =$(SYSCONF_UIC) | ||
14 | |||
15 | ####### Target | ||
16 | |||
17 | DESTDIR = $(OPIEDIR)/bin/ | ||
18 | VER_MAJ = 1 | ||
19 | VER_MIN = 0 | ||
20 | VER_PATCH = 0 | ||
21 | TARGET= remote | ||
22 | TARGET1 = lib$(TARGET).so.$(VER_MAJ) | ||
23 | |||
24 | ####### Files | ||
25 | |||
26 | HEADERS =remotetab.h \ | ||
27 | learntab.h \ | ||
28 | configtab.h \ | ||
29 | topgroup.h \ | ||
30 | dvdgroup.h \ | ||
31 | channelgroup.h \ | ||
32 | vcrgroup.h \ | ||
33 | buttondialog.h \ | ||
34 | topgroupconf.h \ | ||
35 | dvdgroupconf.h \ | ||
36 | channelgroupconf.h \ | ||
37 | vcrgroupconf.h \ | ||
38 | mainview.h \ | ||
39 | recorddialog.h \ | ||
40 | helptab.h | ||
41 | SOURCES =remote.cpp \ | ||
42 | remotetab.cpp \ | ||
43 | learntab.cpp \ | ||
44 | configtab.cpp \ | ||
45 | topgroup.cpp \ | ||
46 | dvdgroup.cpp \ | ||
47 | channelgroup.cpp \ | ||
48 | vcrgroup.cpp \ | ||
49 | buttondialog.cpp \ | ||
50 | topgroupconf.cpp \ | ||
51 | dvdgroupconf.cpp \ | ||
52 | channelgroupconf.cpp \ | ||
53 | vcrgroupconf.cpp \ | ||
54 | mainview.cpp \ | ||
55 | recorddialog.cpp \ | ||
56 | helptab.cpp | ||
57 | OBJECTS =remote.o \ | ||
58 | remotetab.o \ | ||
59 | learntab.o \ | ||
60 | configtab.o \ | ||
61 | topgroup.o \ | ||
62 | dvdgroup.o \ | ||
63 | channelgroup.o \ | ||
64 | vcrgroup.o \ | ||
65 | buttondialog.o \ | ||
66 | topgroupconf.o \ | ||
67 | dvdgroupconf.o \ | ||
68 | channelgroupconf.o \ | ||
69 | vcrgroupconf.o \ | ||
70 | mainview.o \ | ||
71 | recorddialog.o \ | ||
72 | helptab.o | ||
73 | INTERFACES = | ||
74 | UICDECLS = | ||
75 | UICIMPLS = | ||
76 | SRCMOC =moc_remotetab.cpp \ | ||
77 | moc_learntab.cpp \ | ||
78 | moc_configtab.cpp \ | ||
79 | moc_buttondialog.cpp \ | ||
80 | moc_mainview.cpp \ | ||
81 | moc_recorddialog.cpp | ||
82 | OBJMOC =moc_remotetab.o \ | ||
83 | moc_learntab.o \ | ||
84 | moc_configtab.o \ | ||
85 | moc_buttondialog.o \ | ||
86 | moc_mainview.o \ | ||
87 | moc_recorddialog.o | ||
88 | |||
89 | |||
90 | ####### Implicit rules | ||
91 | |||
92 | .SUFFIXES: .cpp .cxx .cc .C .c | ||
93 | |||
94 | .cpp.o: | ||
95 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< | ||
96 | |||
97 | .cxx.o: | ||
98 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< | ||
99 | |||
100 | .cc.o: | ||
101 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< | ||
102 | |||
103 | .C.o: | ||
104 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< | ||
105 | |||
106 | .c.o: | ||
107 | $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $< | ||
108 | |||
109 | ####### Build rules | ||
110 | |||
111 | |||
112 | all: $(DESTDIR)$(TARGET) | ||
113 | |||
114 | $(DESTDIR)$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) $(SUBLIBS) | ||
115 | $(SYSCONF_LINK) $(LFLAGS) -o $(DESTDIR)$(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS) | ||
116 | |||
117 | moc: $(SRCMOC) | ||
118 | |||
119 | tmake: | ||
120 | tmake remote.pro | ||
121 | |||
122 | clean: | ||
123 | -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) | ||
124 | -rm -f *~ core | ||
125 | -rm -f allmoc.cpp | ||
126 | |||
127 | ####### Extension Modules | ||
128 | |||
129 | listpromodules: | ||
130 | @echo | ||
131 | |||
132 | listallmodules: | ||
133 | @echo | ||
134 | |||
135 | listaddonpromodules: | ||
136 | @echo | ||
137 | |||
138 | listaddonentmodules: | ||
139 | @echo | ||
140 | |||
141 | |||
142 | REQUIRES= | ||
143 | |||
144 | ####### Sub-libraries | ||
145 | |||
146 | |||
147 | ###### Combined headers | ||
148 | |||
149 | |||
150 | |||
151 | ####### Compile | ||
152 | |||
153 | remote.o: remote.cpp \ | ||
154 | $(OPIEDIR)/include/qpe/qpeapplication.h \ | ||
155 | $(OPIEDIR)/include/qpe/resource.h \ | ||
156 | $(OPIEDIR)/include/qpe/config.h \ | ||
157 | mainview.h \ | ||
158 | remotetab.h \ | ||
159 | topgroup.h \ | ||
160 | dvdgroup.h \ | ||
161 | channelgroup.h \ | ||
162 | vcrgroup.h \ | ||
163 | learntab.h \ | ||
164 | recorddialog.h \ | ||
165 | $(OPIEDIR)/include/opie/oprocess.h \ | ||
166 | configtab.h \ | ||
167 | buttondialog.h \ | ||
168 | channelgroupconf.h \ | ||
169 | dvdgroupconf.h \ | ||
170 | topgroupconf.h \ | ||
171 | vcrgroupconf.h \ | ||
172 | helptab.h | ||
173 | |||
174 | remotetab.o: remotetab.cpp \ | ||
175 | remotetab.h \ | ||
176 | $(OPIEDIR)/include/qpe/config.h \ | ||
177 | topgroup.h \ | ||
178 | dvdgroup.h \ | ||
179 | $(OPIEDIR)/include/qpe/resource.h \ | ||
180 | channelgroup.h \ | ||
181 | vcrgroup.h | ||
182 | |||
183 | learntab.o: learntab.cpp \ | ||
184 | learntab.h \ | ||
185 | recorddialog.h \ | ||
186 | $(OPIEDIR)/include/opie/oprocess.h | ||
187 | |||
188 | configtab.o: configtab.cpp \ | ||
189 | configtab.h \ | ||
190 | $(OPIEDIR)/include/qpe/config.h \ | ||
191 | buttondialog.h \ | ||
192 | channelgroupconf.h \ | ||
193 | dvdgroupconf.h \ | ||
194 | topgroupconf.h \ | ||
195 | vcrgroupconf.h | ||
196 | |||
197 | topgroup.o: topgroup.cpp \ | ||
198 | topgroup.h \ | ||
199 | $(OPIEDIR)/include/qpe/config.h | ||
200 | |||
201 | dvdgroup.o: dvdgroup.cpp \ | ||
202 | dvdgroup.h \ | ||
203 | $(OPIEDIR)/include/qpe/resource.h | ||
204 | |||
205 | channelgroup.o: channelgroup.cpp \ | ||
206 | channelgroup.h | ||
207 | |||
208 | vcrgroup.o: vcrgroup.cpp \ | ||
209 | vcrgroup.h \ | ||
210 | $(OPIEDIR)/include/qpe/resource.h | ||
211 | |||
212 | buttondialog.o: buttondialog.cpp \ | ||
213 | buttondialog.h | ||
214 | |||
215 | topgroupconf.o: topgroupconf.cpp \ | ||
216 | topgroupconf.h \ | ||
217 | $(OPIEDIR)/include/qpe/config.h | ||
218 | |||
219 | dvdgroupconf.o: dvdgroupconf.cpp \ | ||
220 | dvdgroupconf.h | ||
221 | |||
222 | channelgroupconf.o: channelgroupconf.cpp \ | ||
223 | channelgroupconf.h | ||
224 | |||
225 | vcrgroupconf.o: vcrgroupconf.cpp \ | ||
226 | vcrgroupconf.h | ||
227 | |||
228 | mainview.o: mainview.cpp \ | ||
229 | mainview.h \ | ||
230 | $(OPIEDIR)/include/qpe/qpeapplication.h \ | ||
231 | $(OPIEDIR)/include/qpe/resource.h \ | ||
232 | $(OPIEDIR)/include/qpe/config.h \ | ||
233 | remotetab.h \ | ||
234 | topgroup.h \ | ||
235 | dvdgroup.h \ | ||
236 | channelgroup.h \ | ||
237 | vcrgroup.h \ | ||
238 | learntab.h \ | ||
239 | recorddialog.h \ | ||
240 | $(OPIEDIR)/include/opie/oprocess.h \ | ||
241 | configtab.h \ | ||
242 | buttondialog.h \ | ||
243 | channelgroupconf.h \ | ||
244 | dvdgroupconf.h \ | ||
245 | topgroupconf.h \ | ||
246 | vcrgroupconf.h \ | ||
247 | helptab.h | ||
248 | |||
249 | recorddialog.o: recorddialog.cpp \ | ||
250 | recorddialog.h \ | ||
251 | $(OPIEDIR)/include/opie/oprocess.h | ||
252 | |||
253 | helptab.o: helptab.cpp \ | ||
254 | helptab.h | ||
255 | |||
256 | moc_remotetab.o: moc_remotetab.cpp \ | ||
257 | remotetab.h \ | ||
258 | $(OPIEDIR)/include/qpe/config.h \ | ||
259 | topgroup.h \ | ||
260 | dvdgroup.h \ | ||
261 | $(OPIEDIR)/include/qpe/resource.h \ | ||
262 | channelgroup.h \ | ||
263 | vcrgroup.h | ||
264 | |||
265 | moc_learntab.o: moc_learntab.cpp \ | ||
266 | learntab.h \ | ||
267 | recorddialog.h \ | ||
268 | $(OPIEDIR)/include/opie/oprocess.h | ||
269 | |||
270 | moc_configtab.o: moc_configtab.cpp \ | ||
271 | configtab.h \ | ||
272 | $(OPIEDIR)/include/qpe/config.h \ | ||
273 | buttondialog.h \ | ||
274 | channelgroupconf.h \ | ||
275 | dvdgroupconf.h \ | ||
276 | topgroupconf.h \ | ||
277 | vcrgroupconf.h | ||
278 | |||
279 | moc_buttondialog.o: moc_buttondialog.cpp \ | ||
280 | buttondialog.h | ||
281 | |||
282 | moc_mainview.o: moc_mainview.cpp \ | ||
283 | mainview.h \ | ||
284 | $(OPIEDIR)/include/qpe/qpeapplication.h \ | ||
285 | $(OPIEDIR)/include/qpe/resource.h \ | ||
286 | $(OPIEDIR)/include/qpe/config.h \ | ||
287 | remotetab.h \ | ||
288 | topgroup.h \ | ||
289 | dvdgroup.h \ | ||
290 | channelgroup.h \ | ||
291 | vcrgroup.h \ | ||
292 | learntab.h \ | ||
293 | recorddialog.h \ | ||
294 | $(OPIEDIR)/include/opie/oprocess.h \ | ||
295 | configtab.h \ | ||
296 | buttondialog.h \ | ||
297 | channelgroupconf.h \ | ||
298 | dvdgroupconf.h \ | ||
299 | topgroupconf.h \ | ||
300 | vcrgroupconf.h \ | ||
301 | helptab.h | ||
302 | |||
303 | moc_recorddialog.o: moc_recorddialog.cpp \ | ||
304 | recorddialog.h \ | ||
305 | $(OPIEDIR)/include/opie/oprocess.h | ||
306 | |||
307 | moc_remotetab.cpp: remotetab.h | ||
308 | $(MOC) remotetab.h -o moc_remotetab.cpp | ||
309 | |||
310 | moc_learntab.cpp: learntab.h | ||
311 | $(MOC) learntab.h -o moc_learntab.cpp | ||
312 | |||
313 | moc_configtab.cpp: configtab.h | ||
314 | $(MOC) configtab.h -o moc_configtab.cpp | ||
315 | |||
316 | moc_buttondialog.cpp: buttondialog.h | ||
317 | $(MOC) buttondialog.h -o moc_buttondialog.cpp | ||
318 | |||
319 | moc_mainview.cpp: mainview.h | ||
320 | $(MOC) mainview.h -o moc_mainview.cpp | ||
321 | |||
322 | moc_recorddialog.cpp: recorddialog.h | ||
323 | $(MOC) recorddialog.h -o moc_recorddialog.cpp | ||
324 | |||
325 | |||
diff --git a/noncore/tools/remote/learntab.cpp b/noncore/tools/remote/learntab.cpp index 1c746c5..7582161 100644 --- a/noncore/tools/remote/learntab.cpp +++ b/noncore/tools/remote/learntab.cpp | |||
@@ -1,191 +1,191 @@ | |||
1 | /* | 1 | /* |
2 | Opie-Remote. emulates remote controlls on an iPaq (and maybe a Zaurus) in Opie. | 2 | Opie-Remote. emulates remote controlls on an iPaq (and maybe a Zaurus) in Opie. |
3 | Copyright (C) 2002 Thomas Stephens | 3 | Copyright (C) 2002 Thomas Stephens |
4 | 4 | ||
5 | This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public | 5 | This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public |
6 | License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later | 6 | License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later |
7 | version. | 7 | version. |
8 | 8 | ||
9 | This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the | 9 | This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the |
10 | implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General | 10 | implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General |
11 | Public License for more details. | 11 | Public License for more details. |
12 | 12 | ||
13 | You should have received a copy of the GNU General Public License along with this program; if not, write to the Free | 13 | You should have received a copy of the GNU General Public License along with this program; if not, write to the Free |
14 | Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | 14 | Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
15 | */ | 15 | */ |
16 | 16 | ||
17 | #include "learntab.h" | 17 | #include "learntab.h" |
18 | 18 | ||
19 | LearnTab::LearnTab(QWidget *parent, const char *name):QWidget(parent,name) | 19 | LearnTab::LearnTab(QWidget *parent, const char *name):QWidget(parent,name) |
20 | { | 20 | { |
21 | QVBoxLayout *layout = new QVBoxLayout(this); | 21 | QVBoxLayout *layout = new QVBoxLayout(this); |
22 | QHBoxLayout *bottomLayout = new QHBoxLayout(this); | 22 | QHBoxLayout *bottomLayout = new QHBoxLayout(this); |
23 | 23 | ||
24 | layout->insertSpacing(0,5); | 24 | layout->insertSpacing(0,5); |
25 | remotesBox = new QListBox(this, "remotesBox"); | 25 | remotesBox = new QListBox(this, "remotesBox"); |
26 | layout->insertWidget(0, remotesBox, 1); | 26 | layout->insertWidget(0, remotesBox, 1); |
27 | remotesBox->insertStringList(getRemotes()); | 27 | remotesBox->insertStringList(getRemotes()); |
28 | 28 | ||
29 | layout->insertSpacing(-1,5); | 29 | layout->insertSpacing(-1,5); |
30 | layout->insertLayout(-1, bottomLayout); | 30 | layout->insertLayout(-1, bottomLayout); |
31 | layout->insertSpacing(-1,5); | 31 | layout->insertSpacing(-1,5); |
32 | 32 | ||
33 | QPushButton *add = new QPushButton("Add", this, "add"); | 33 | QPushButton *add = new QPushButton("Add", this, "add"); |
34 | bottomLayout->insertSpacing(-1, 5); | 34 | bottomLayout->insertSpacing(-1, 5); |
35 | bottomLayout->insertWidget(-1, add); | 35 | bottomLayout->insertWidget(-1, add); |
36 | bottomLayout->insertSpacing(-1, 5); | 36 | bottomLayout->insertSpacing(-1, 5); |
37 | QPushButton *edit = new QPushButton("Edit", this, "edit"); | 37 | QPushButton *edit = new QPushButton("Edit", this, "edit"); |
38 | bottomLayout->insertWidget(-1, edit); | 38 | bottomLayout->insertWidget(-1, edit); |
39 | bottomLayout->insertSpacing(-1, 5); | 39 | bottomLayout->insertSpacing(-1, 5); |
40 | QPushButton *del = new QPushButton("Delete", this, "delete"); | 40 | QPushButton *del = new QPushButton("Delete", this, "delete"); |
41 | bottomLayout->insertWidget(-1, del); | 41 | bottomLayout->insertWidget(-1, del); |
42 | bottomLayout->insertSpacing(-1, 5); | 42 | bottomLayout->insertSpacing(-1, 5); |
43 | 43 | ||
44 | connect(add, SIGNAL(clicked()), this, SLOT(add()) ); | 44 | connect(add, SIGNAL(clicked()), this, SLOT(add()) ); |
45 | connect(edit, SIGNAL(clicked()), this, SLOT(edit()) ); | 45 | connect(edit, SIGNAL(clicked()), this, SLOT(edit()) ); |
46 | connect(del, SIGNAL(clicked()), this, SLOT(del()) ); | 46 | connect(del, SIGNAL(clicked()), this, SLOT(del()) ); |
47 | } | 47 | } |
48 | 48 | ||
49 | void LearnTab::add() | 49 | void LearnTab::add() |
50 | { | 50 | { |
51 | printf("LearnTab::add: add pressed\n"); | 51 | printf("LearnTab::add: add pressed\n"); |
52 | RecordDialog *dialog = new RecordDialog(this); | 52 | RecordDialog *dialog = new RecordDialog(this); |
53 | dialog->showMaximized(); | 53 | dialog->showMaximized(); |
54 | } | 54 | } |
55 | 55 | ||
56 | void LearnTab::edit() | 56 | void LearnTab::edit() |
57 | { | 57 | { |
58 | } | 58 | } |
59 | 59 | ||
60 | void LearnTab::del() | 60 | void LearnTab::del() |
61 | { | 61 | { |
62 | } | 62 | } |
63 | 63 | ||
64 | QStringList LearnTab::getRemotes() | 64 | QStringList LearnTab::getRemotes() |
65 | { | 65 | { |
66 | const char write_buffer[] = "LIST\n"; | 66 | const char write_buffer[] = "LIST\n"; |
67 | const char *readbuffer; | 67 | const char *readbuffer; |
68 | int i, numlines; | 68 | int i, numlines; |
69 | QStringList list; | 69 | QStringList list; |
70 | 70 | ||
71 | addr.sun_family=AF_UNIX; | 71 | addr.sun_family=AF_UNIX; |
72 | strcpy(addr.sun_path,"/dev/lircd"); | 72 | strcpy(addr.sun_path,"/dev/lircd"); |
73 | 73 | ||
74 | fd = socket(AF_UNIX, SOCK_STREAM, 0); | 74 | fd = socket(AF_UNIX, SOCK_STREAM, 0); |
75 | if(fd == -1) | 75 | if(fd == -1) |
76 | { | 76 | { |
77 | QMessageBox *mb = new QMessageBox("Error!", | 77 | QMessageBox *mb = new QMessageBox("Error!", |
78 | "couldnt connect to socket", | 78 | "couldnt connect to socket", |
79 | QMessageBox::NoIcon, | 79 | QMessageBox::NoIcon, |
80 | QMessageBox::Ok, | 80 | QMessageBox::Ok, |
81 | QMessageBox::NoButton, | 81 | QMessageBox::NoButton, |
82 | QMessageBox::NoButton); | 82 | QMessageBox::NoButton); |
83 | mb->exec(); | 83 | mb->exec(); |
84 | perror("ButtonDialog::GetRemotes"); | 84 | perror("LearnTab::GetRemotes"); |
85 | return NULL; | 85 | return NULL; |
86 | } | 86 | } |
87 | 87 | ||
88 | if(::connect(fd,(struct sockaddr *) &addr, sizeof(addr) ) == -1) | 88 | if(::connect(fd,(struct sockaddr *) &addr, sizeof(addr) ) == -1) |
89 | { | 89 | { |
90 | QMessageBox *mb = new QMessageBox("Error!", | 90 | QMessageBox *mb = new QMessageBox("Error!", |
91 | "couldnt connect to socket", | 91 | "couldnt connect to socket", |
92 | QMessageBox::NoIcon, | 92 | QMessageBox::NoIcon, |
93 | QMessageBox::Ok, | 93 | QMessageBox::Ok, |
94 | QMessageBox::NoButton, | 94 | QMessageBox::NoButton, |
95 | QMessageBox::NoButton); | 95 | QMessageBox::NoButton); |
96 | mb->exec(); | 96 | mb->exec(); |
97 | perror("ButtonDialog::GetRemotes"); | 97 | perror("LearnTab::GetRemotes"); |
98 | return NULL; | 98 | return NULL; |
99 | } | 99 | } |
100 | 100 | ||
101 | write(fd, write_buffer, strlen(write_buffer)); | 101 | write(fd, write_buffer, strlen(write_buffer)); |
102 | 102 | ||
103 | for(i=0; i<5; i++) | 103 | for(i=0; i<5; i++) |
104 | { | 104 | { |
105 | printf("%d\n", i); | 105 | printf("%d\n", i); |
106 | readbuffer = readPacket(); | 106 | readbuffer = readPacket(); |
107 | printf("%s", readbuffer); | 107 | printf("%s", readbuffer); |
108 | printf("%d\n", i); | 108 | printf("%d\n", i); |
109 | } | 109 | } |
110 | 110 | ||
111 | numlines = atoi(readbuffer); | 111 | numlines = atoi(readbuffer); |
112 | 112 | ||
113 | for(i=0; i<numlines; i++) | 113 | for(i=0; i<numlines; i++) |
114 | { | 114 | { |
115 | list+=readPacket(); | 115 | list+=readPacket(); |
116 | } | 116 | } |
117 | 117 | ||
118 | if(strcasecmp(readPacket(), "END") != 0) | 118 | if(strcasecmp(readPacket(), "END") != 0) |
119 | { | 119 | { |
120 | QMessageBox *mb = new QMessageBox("Error!", | 120 | QMessageBox *mb = new QMessageBox("Error!", |
121 | "bad packet", | 121 | "bad packet", |
122 | QMessageBox::NoIcon, | 122 | QMessageBox::NoIcon, |
123 | QMessageBox::Ok, | 123 | QMessageBox::Ok, |
124 | QMessageBox::NoButton, | 124 | QMessageBox::NoButton, |
125 | QMessageBox::NoButton); | 125 | QMessageBox::NoButton); |
126 | mb->exec(); | 126 | mb->exec(); |
127 | perror("ButtonDialog::GetRemotes"); | 127 | perror("LearnTab::GetRemotes"); |
128 | return NULL; | 128 | return NULL; |
129 | } | 129 | } |
130 | 130 | ||
131 | ::close(fd); | 131 | ::close(fd); |
132 | return list; | 132 | return list; |
133 | } | 133 | } |
134 | 134 | ||
135 | //this function was ripped for rc.c in xrc, it is available here: http://www.lirc.org/software.html | 135 | //this function was ripped for rc.c in xrc, it is available here: http://www.lirc.org/software.html |
136 | const char *LearnTab::readPacket() | 136 | const char *LearnTab::readPacket() |
137 | { | 137 | { |
138 | static char buffer[PACKET_SIZE+1]=""; | 138 | static char buffer[PACKET_SIZE+1]=""; |
139 | char *end; | 139 | char *end; |
140 | static int ptr=0,end_len=0; | 140 | static int ptr=0,end_len=0; |
141 | ssize_t ret; | 141 | ssize_t ret; |
142 | timeout = 0; | 142 | timeout = 0; |
143 | 143 | ||
144 | if(ptr>0) | 144 | if(ptr>0) |
145 | { | 145 | { |
146 | memmove(buffer,buffer+ptr,strlen(buffer+ptr)+1); | 146 | memmove(buffer,buffer+ptr,strlen(buffer+ptr)+1); |
147 | ptr=strlen(buffer); | 147 | ptr=strlen(buffer); |
148 | end=strchr(buffer,'\n'); | 148 | end=strchr(buffer,'\n'); |
149 | } | 149 | } |
150 | else | 150 | else |
151 | { | 151 | { |
152 | end=NULL; | 152 | end=NULL; |
153 | } | 153 | } |
154 | alarm(TIMEOUT); | 154 | alarm(TIMEOUT); |
155 | while(end==NULL) | 155 | while(end==NULL) |
156 | { | 156 | { |
157 | if(PACKET_SIZE<=ptr) | 157 | if(PACKET_SIZE<=ptr) |
158 | { | 158 | { |
159 | fprintf(stderr,"bad packet\n"); | 159 | fprintf(stderr,"bad packet\n"); |
160 | ptr=0; | 160 | ptr=0; |
161 | return(NULL); | 161 | return(NULL); |
162 | } | 162 | } |
163 | ret=read(fd,buffer+ptr,PACKET_SIZE-ptr); | 163 | ret=read(fd,buffer+ptr,PACKET_SIZE-ptr); |
164 | 164 | ||
165 | if(ret<=0 || timeout) | 165 | if(ret<=0 || timeout) |
166 | { | 166 | { |
167 | if(timeout) | 167 | if(timeout) |
168 | { | 168 | { |
169 | fprintf(stderr,"timeout\n"); | 169 | fprintf(stderr,"timeout\n"); |
170 | } | 170 | } |
171 | else | 171 | else |
172 | { | 172 | { |
173 | alarm(0); | 173 | alarm(0); |
174 | } | 174 | } |
175 | ptr=0; | 175 | ptr=0; |
176 | return(NULL); | 176 | return(NULL); |
177 | } | 177 | } |
178 | buffer[ptr+ret]=0; | 178 | buffer[ptr+ret]=0; |
179 | ptr=strlen(buffer); | 179 | ptr=strlen(buffer); |
180 | end=strchr(buffer,'\n'); | 180 | end=strchr(buffer,'\n'); |
181 | } | 181 | } |
182 | alarm(0);timeout=0; | 182 | alarm(0);timeout=0; |
183 | 183 | ||
184 | end[0]=0; | 184 | end[0]=0; |
185 | ptr=strlen(buffer)+1; | 185 | ptr=strlen(buffer)+1; |
186 | //# ifdef DEBUG | 186 | //# ifdef DEBUG |
187 | //printf("buffer: -%s-\n",buffer); | 187 | //printf("buffer: -%s-\n",buffer); |
188 | //# endif | 188 | //# endif |
189 | return(buffer); | 189 | return(buffer); |
190 | } | 190 | } |
191 | 191 | ||