Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - liferey

Pages: [1]
1
Qt/Qtopia / What is my QPE/Application/appname?
« on: July 19, 2004, 01:54:23 pm »
I am using AlarmServer::addAlarm(QDateTime  when,  
  const QCString &  channel,  
  const QCString &  message,  
  int  data = 0
)
and don't know what to put in QCString &channel.

The Doc says it should be /QPE/Application/myappname. How do I know what my appname is? Is it the name of my exe? Or the name of the class?
 
Thank you very much!

2
Qt/Qtopia / No such Signal appMessage()
« on: July 19, 2004, 10:56:13 am »
Thank you very much!

I did what you said and now the program can run - but the results are wrong.

When the time comes to execute the alarm, it looks like Zaurus is trying to do something, with the hourglass displaying at the buttom, but nothing happens. Debug shows that the program doesn't go into receive() slot.

I think this is because my "QPE/Application/myalarm" isn't kosher. I don't know what my appname should be. So I just name the cpp file myalarm.cpp, the class name myalarm and the .pro file myalarm.pro, hoping that by doing this, zaurus will know what I am talking about in AlarmServer::addAlarm(alarm_time, "QPE/Application/myalarm", ...) But obviously it is not that simple.

How do I decide my appname in QPE/Application/appname?

3
Qt/Qtopia / No such Signal appMessage()
« on: July 17, 2004, 05:00:26 pm »
I wrote a simple program using Qpe alarmserver.
IN constructor:
connect(qApp, SIGNAL(appMessage(const QCString&, const QByteArray&)),
             this, SLOT(slotappMessage(const QCString&, const QByteArray&)));
AlarmServer::AddAlarm(when, "QPE/Application/alarmclock","alarmclock(QDT,int)",0);

In slotappMessage:
if(msg=="alarmclock()")  Sound::soundAlarm;


I just followed the alarmserver ref and everything looks simple enough. But when I tried to run the program, it always says "NO such signal QApplication::appMessage(const QCString&, const QByteArray&)" on Zaurus. What am I doing wrong here?

Thanks for your help!

4
I downloaded SimpleRead.java from

http://java.sun.com/developer/releases/jav...SimpleRead.java

It worked well on a linux desktop. But when I move it to Z, it said
\"No /dev/ttyS0\".... This java program couldn\'t find any CommPortIdentifier.

I got the comm.jar for Zaurus from
http://s88074083.onlinehome.us/Zaurus/Index.htm
and it is saved in /home/QtPalmtop/java/comm.jar. I am pretty sure ttyS0 is open because I can use a C program to read from it. What could be the problem?

I\'ve searched all the messages and nobody\'s ever had this problem before. Am I missing some real obvious steps here? I will be forever indebted for your help!

Pages: [1]