taskswitcher/client/inc/tstaskchangeinfo.h
changeset 116 305818acdca4
equal deleted inserted replaced
112:dbfb5e38438b 116:305818acdca4
       
     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 #ifndef TSTASKCHANGEINFO_H
       
    18 #define TSTASKCHANGEINFO_H
       
    19 
       
    20 #include "tstaskmonitor_global.h"
       
    21 
       
    22 class TSTASKMONITOR_EXPORT TsTaskChangeInfo
       
    23 {
       
    24 public:
       
    25     enum ChangeType{
       
    26         EChangeInsert,
       
    27         EChangeDelete,
       
    28         EChangeMove,
       
    29         EChangeUpdate,
       
    30         EChangeCancel
       
    31     };
       
    32     static const int KInvalidOffset = -2;
       
    33     
       
    34     TsTaskChangeInfo(int newOffset = KInvalidOffset, int oldOffset = KInvalidOffset);
       
    35     
       
    36     int newOffset() const;
       
    37     int oldOffset() const;
       
    38     ChangeType changeType() const;
       
    39      
       
    40 private:
       
    41     int mNewOffset;
       
    42     int mOldOffset; 
       
    43     
       
    44 };
       
    45 
       
    46 #endif /* TSTASKCHANGEINFO_H */