示例#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)));
}
示例#3
0
文件: main.c 项目: AsylumCorp/dxr
// Hello World Example
int main(int argc, char* argv[]){
  printf("%s\n", getHello());
  return 0;
}
示例#4
0
static VALUE wrap_Hello_sayHello(VALUE self)
{
  getHello(self)->sayHello();

  return Qnil;
}