Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Perl Modules

    App::Modular::Module::Events 0.1.3

    Download button

    No screenshots available
    Downloads: 399  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Baltasar Cevc | More programs
    Perl Artistic License / FREE
    March 1st, 2007, 04:05 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    App::Modular::Module::Events description

    A Perl module with event handling for App::Modular compatible applications.

    App::Modular::Module::Events is a Perl module with event handling for App::Modular compatible applications.

    SYNOPSIS

    package App::Modular::Module::Me;

    use base qw(App::Modular::Module);

    sub depends { return 'Events'; }

    sub start_listen {
    my $self = shift;

    $self->{'modularizer'}->module('Events')->
    register('Listener', 'TelephoneRings');
    };

    sub event_handler {
    my $self = shift;
    my $event = shift;
    print 'Yeah! Somebody thought about me!'
    if ($event eq 'TelephoneRings');
    };

    package App::Modular::Module::You;

    use base qw(App::Modular::Module);

    sub depends { return 'Events'; }

    sub call_me {
    $self->{'modularizer'}->module('Events')->
    trigger('TelephoneRings');
    };


    package main;

    use App::Modular;

    my $modul = instance App::Modular;

    $modul->module('Me')->start_listen();
    $modul->module('You')->callme();

    exit;

    App::Modular aims to provide a framework which should it make very easy to programmes to create any kind of modular program.

    This module provides basic event handling as a contribution to that toolkit. Modules may register themselves as listeners for events, if an event is triggered, all the modules are notified by calling $module-event_handler('event', @params) >.

    The events are speciefied as simple strings.

    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    event handling | App::Modular compatible applications | Perl module | app | event | handling

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM