コード例 #1
0
ファイル: growl.cpp プロジェクト: camalot/gntp-send
void
Growl::Notify(
    const char *const notification,
    const char *const title,
    const char* const message,
    const char *const url,
    const char *const icon) {

  if (protocol == GROWL_TCP) {
    growl_tcp_notify(
        server,
        application,
        notification,
        title,
        message,
        password,
        url,
        icon);
  } else if (protocol == GROWL_UDP) {
    growl_udp_notify(
        server,
        application,
        notification,
        title,
        message,
        password);
  }
}
コード例 #2
0
ファイル: growl.cpp プロジェクト: camalot/gntp-send
void
Growl::Notify(
    const char *const notification,
    const char *const title,
    const char* const message,
    const char *const url,
    const unsigned char *const icon_data,
    const long icon_size) {

  if (protocol == GROWL_TCP) {
    growl_tcp_notify_with_data(
        server,
        application,
        notification,
        title,
        message,
        password,
        url,
        icon_data,
        icon_size);
  } else if (protocol == GROWL_UDP) {
    growl_udp_notify(
        server,
        application,
        notification,
        title,
        message,
        password);
  }
}
コード例 #3
0
ファイル: growl.c プロジェクト: Azarien/processhacker2
int growl_udp( const char *const server,const char *const appname,const char *const notify,const char *const title, const char *const message ,
                                const char *const icon , const char *const password , const char *url )
{
    int rc = growl_udp_register(  server ,  appname ,  (const char **const)&notify , 1 , password  );
    if( rc == 0 )
    {
        rc = growl_udp_notify( server, appname, notify, title,  message , password );
    }
    return rc;
}