- static const Events_ID kChangedEvent = Events_Loop::loop()->eventByName("PreferenceChanged");
- Events_Loop::loop()->registerListener(this, kChangedEvent);
- static const Events_ID kRebuildEvent = Events_Loop::loop()->eventByName("Rebuild");
- Events_Loop::loop()->registerListener(this, kRebuildEvent);
- Events_Loop::loop()->registerListener(this, Events_Loop::eventByName(EVENT_OBJECT_CREATED));
- Events_Loop::loop()->registerListener(this, Events_Loop::eventByName(EVENT_OBJECT_UPDATED));
+ Events_Loop* aLoop = Events_Loop::loop();
+ static const Events_ID kChangedEvent = aLoop->eventByName("PreferenceChanged");
+ aLoop->registerListener(this, kChangedEvent);
+ static const Events_ID kRebuildEvent = aLoop->eventByName("Rebuild");
+ aLoop->registerListener(this, kRebuildEvent);
+ static const Events_ID kCreatedEvent = Events_Loop::loop()->eventByName(EVENT_OBJECT_CREATED);
+ aLoop->registerListener(this, kCreatedEvent);
+ static const Events_ID kUpdatedEvent = Events_Loop::loop()->eventByName(EVENT_OBJECT_UPDATED);
+ aLoop->registerListener(this, kUpdatedEvent);
+ static const Events_ID kOpFinishEvent = aLoop->eventByName("FinishOperation");
+ aLoop->registerListener(this, kOpFinishEvent);
+ static const Events_ID kOpAbortEvent = aLoop->eventByName("AbortOperation");
+ aLoop->registerListener(this, kOpAbortEvent);
+