activityfw/activitydatabase/hsactivitydbserver/src/activitybroadcasttask.cpp
branchGCC_SURGE
changeset 105 e7325f632549
parent 81 5ef31a21fdd5
parent 104 9b022b1f357c
equal deleted inserted replaced
81:5ef31a21fdd5 105:e7325f632549
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:
       
    15 *
       
    16 */
       
    17 #include "activitybroadcasttask.h"
       
    18 
       
    19 // -----------------------------------------------------------------------------
       
    20 //
       
    21 // -----------------------------------------------------------------------------
       
    22 //
       
    23 void ActivityBroadcastTask::ExecuteL(MActivityTaskStorage& storage, 
       
    24                                      const RMessage2& msg)
       
    25 {
       
    26     const RPointerArray<CActivityTask> &tasks(storage.StorageData());
       
    27     for (TInt iter(0); iter < tasks.Count(); ++iter) {
       
    28         (tasks[iter])->BroadcastReceivedL(msg);
       
    29     }
       
    30     msg.Complete(KErrNone);
       
    31 }