Ignore:
Timestamp:
Mar 13, 2012, 1:25:43 PM (11 years ago)
Author:
David Benjamin <davidben@mit.edu>
Children:
d474ee9
Parents:
d199207
Message:
Move BarnOwl::Module::Jabber to BarnOwl::Module::Jabber::Impl

In preparation of lazily loading the Jabber module.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • perl/modules/Jabber/lib/BarnOwl/Module/Jabber/Connection.pm

    rc6adf17 r3e34a69  
    146146    my $status = $self->Process(0);
    147147    if ( !defined($status) ) {
    148         $BarnOwl::Module::Jabber::conn->scheduleReconnect($jid);
     148        $BarnOwl::Module::Jabber::Impl::conn->scheduleReconnect($jid);
    149149    }
    150150}
     
    191191        my %jq  = $roster->query($buddy);
    192192        my $name = $jq{name} || $buddy->GetUserID();
    193         $BarnOwl::Module::Jabber::completion_jids{$name} = 1;
    194         $BarnOwl::Module::Jabber::completion_jids{$buddy->GetJID()} = 1;
    195     }
    196     $BarnOwl::Module::Jabber::vars{idletime} |= BarnOwl::getidletime();
    197     unless (exists $BarnOwl::Module::Jabber::vars{keepAliveTimer}) {
    198         $BarnOwl::Module::Jabber::vars{keepAliveTimer} =
     193        $BarnOwl::Module::Jabber::Impl::completion_jids{$name} = 1;
     194        $BarnOwl::Module::Jabber::Impl::completion_jids{$buddy->GetJID()} = 1;
     195    }
     196    $BarnOwl::Module::Jabber::Impl::vars{idletime} |= BarnOwl::getidletime();
     197    unless (exists $BarnOwl::Module::Jabber::Impl::vars{keepAliveTimer}) {
     198        $BarnOwl::Module::Jabber::Impl::vars{keepAliveTimer} =
    199199            BarnOwl::Timer->new({
    200200                'name' => "Jabber ($fullJid) keepAliveTimer",
    201201                'after' => 5,
    202202                'interval' => 5,
    203                 'cb' => sub { BarnOwl::Module::Jabber::do_keep_alive_and_auto_away(@_) }
     203                'cb' => sub { BarnOwl::Module::Jabber::Impl::do_keep_alive_and_auto_away(@_) }
    204204                                });
    205205    }
Note: See TracChangeset for help on using the changeset viewer.