Beispiel #1
0
static VALUE wrap_Hello_init(VALUE self)
{
  Hello* p = getHello(self);
  new (p) Hello();

  return Qnil;
}
RRadioClock::RRadioClock(ICore *api, QWidget *parent)
    : QWidget(parent),
      m_core(api),
      m_pushed(false)
{
    setMinimumSize(QSize(130,130));

    //connect to api
    QObject::connect(m_core, SIGNAL(dateStrChanged(QString)), this, SLOT(setDate(QString)));
    QObject::connect(m_core, SIGNAL(timeStrChanged(QString)), this, SLOT(setTime(QString)));
    QObject::connect(this, SIGNAL(sayHello(QString)), m_core, SLOT(getHello(QString)));
}
Beispiel #3
0
// Hello World Example
int main(int argc, char* argv[]){
  printf("%s\n", getHello());
  return 0;
}
Beispiel #4
0
static VALUE wrap_Hello_sayHello(VALUE self)
{
  getHello(self)->sayHello();

  return Qnil;
}