third.cpp:
#include "third.h"
1-#include <QCBSMessage>
2-#include <QAtUtils>
3-#include <QCBSMessagePrivate>
4-#include <QSMSMessage>
5-#include <QtopiaApplication>
7-{
8-setupUi(this);
9-QCBSMessage *code1=new QCBSMessage();
10-const uint code=code1->messageCode() ;
12-QString string
=variant
->toString
();
13-lineEdit->setText(string);
14-}
15-third::~third(){}
#include "third.h"
1-#include <QCBSMessage>
2-#include <QAtUtils>
3-#include <QCBSMessagePrivate>
4-#include <QSMSMessage>
5-#include <QtopiaApplication>
6-third::third(QWidget*parent,Qt::WFlags f):QWidget(parent,f)
7-{
8-setupUi(this);
9-QCBSMessage *code1=new QCBSMessage();
10-const uint code=code1->messageCode() ;
11-QVariant *variant=new QVariant(code);
12-QString string=variant->toString();
13-lineEdit->setText(string);
14-}
15-third::~third(){}
To copy to clipboard, switch view to plain text mode
third.h:
#ifndef THIRD_H
1-#define THIRD_H
2-#include "ui_third.h"
3-#include <QVariant>
4-#include <QString>
5-#include<QWidget>
6-#include <QCBSMessage>
7-#include <QAtUtils>
8-#include <QCBSMessagePrivate>
9-#include <QSMSMessage>
10-#include <QtopiaApplication>
11-class third
:public QWidget,
private Ui_third
12-{
13-
14-public:
15-third
(QWidget*parent
=0,Qt
::WFlags f
=0);
16-virtual ~third();
17-};
18-#endif
#ifndef THIRD_H
1-#define THIRD_H
2-#include "ui_third.h"
3-#include <QVariant>
4-#include <QString>
5-#include<QWidget>
6-#include <QCBSMessage>
7-#include <QAtUtils>
8-#include <QCBSMessagePrivate>
9-#include <QSMSMessage>
10-#include <QtopiaApplication>
11-class third:public QWidget,private Ui_third
12-{
13-
14-public:
15-third(QWidget*parent=0,Qt::WFlags f=0);
16-virtual ~third();
17-};
18-#endif
To copy to clipboard, switch view to plain text mode
Error message:
third.h:7:23: error: QCBSMessage: No such file or directory
third.h:8:20: error: QAtUtils: No such file or directory
third.h:9:30: error: QCBSMessagePrivate: No such file or directory
third.h:10:23: error: QSMSMessage: No such file or directory
make[2]: *** [.obj/release-shared/main.o] Error 1
make[2]: Leaving directory `/home/user/projects/third'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/user/projects/third'
make: *** [all] Error 2
third.h:7:23: error: QCBSMessage: No such file or directory
third.h:8:20: error: QAtUtils: No such file or directory
third.h:9:30: error: QCBSMessagePrivate: No such file or directory
third.h:10:23: error: QSMSMessage: No such file or directory
make[2]: *** [.obj/release-shared/main.o] Error 1
make[2]: Leaving directory `/home/user/projects/third'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/user/projects/third'
make: *** [all] Error 2
To copy to clipboard, switch view to plain text mode
Bookmarks