1 /***************************************************************************
2                           msgline.cpp  -  description
3                              -------------------
4     begin                : Sat Apr 10 1999
5     copyright            : (C) 1999 by Michael Espey
6     email                : tracer@camouflage.hh.uunet.de
7  ***************************************************************************/
8 
9 /***************************************************************************
10  *                                                                         *
11  *   This program is free software; you can redistribute it and/or modify  *
12  *   it under the terms of the GNU General Public License as published by  *
13  *   the Free Software Foundation; either version 2 of the License, or     *
14  *   (at your option) any later version.                                   *
15  *                                                                         *
16  ***************************************************************************/
17 
18 
19 #include "msgline.h"
20 #include <qapplication.h> // *** remove after testing
21 
msgLine(int newlinetype,int newquotelevel,QString newline)22 msgLine::msgLine(int newlinetype, int newquotelevel, QString newline)
23 {
24     debug("msgLine::msgLine(int newlinetype, int newquotelevel, const char *newline)");
25     linetype = newlinetype;
26     quotelevel = newquotelevel;
27     line = newline;
28     char* foo = new char[100];
29     sprintf(foo, line);
30     debug("msgline: %s", foo);
31 }
32 
33 
34 
~msgLine()35 msgLine::~msgLine()
36 {
37 }
38 
39 
40 
getType()41 int msgLine::getType()
42 {
43     return linetype;
44 }
45 
46 
47 
getQuoteLevel()48 int msgLine::getQuoteLevel()
49 {
50     return quotelevel;
51 }
52 
53 
54 
getLine()55 QString msgLine::getLine()
56 {
57     return line;
58 }
59 
60 
61 
62 
63 
64 
65