Feb 102009
 

Трахай мозг:)

  One Response to “2элессар:”

  1. bool plasmaNotification::init(PluginSystemInterface *plugin_system)
    {
    PluginInterface::init(plugin_system);
    plasmaNotificationIcon = new QIcon(“:/icons/icon.png”);
    plasmaNotificationPluginSystem = plugin_system;

    emit plasmaNotificationPluginSystem->registerEventHandler(SystemNotification, this);
    emit plasmaNotificationPluginSystem->registerEventHandler(UserNotification, this);

    //KNotification *notification= new KNotification ( “kopete_incoming” , 0 );
    KComponentData component_data(“PlasmaNotification”);
    /*notification->setComponentData(component_data);
    notification->setText( “you received a message from 3″);
    notification->sendEvent(); */
    n= KNotification::event(KNotification::Notification, “ssssssssssssssssssssssssssss\nsdsdasdsdsadsa
    sdsdasd”);
    //n->setFlags(KNotification::Persistant);

    return true;
    }