mtpfws/mtpfw/dataproviders/dputility/src/cmtpfsentrycache.cpp
changeset 49 c20dd21d1eb4
parent 18 1b39655331a3
equal deleted inserted replaced
41:2c19c7cf5550 49:c20dd21d1eb4
    14 //
    14 //
    15 
    15 
    16 #include <mtp/mtpprotocolconstants.h>
    16 #include <mtp/mtpprotocolconstants.h>
    17 
    17 
    18 #include "cmtpfsentrycache.h"
    18 #include "cmtpfsentrycache.h"
       
    19 #include "OstTraceDefinitions.h"
       
    20 #ifdef OST_TRACE_COMPILER_IN_USE
       
    21 #include "cmtpfsentrycacheTraces.h"
       
    22 #endif
    19 
    23 
    20 
    24 
    21 __FLOG_STMT(_LIT8(KComponent,"MTPFSEntryCache");)
       
    22 
    25 
    23 // -----------------------------------------------------------------------------
    26 // -----------------------------------------------------------------------------
    24 // CMTPFSEntryCache::NewL
    27 // CMTPFSEntryCache::NewL
    25 // Two-phase construction method
    28 // Two-phase construction method
    26 // -----------------------------------------------------------------------------
    29 // -----------------------------------------------------------------------------
    34     return self;
    37     return self;
    35     }
    38     }
    36 
    39 
    37 EXPORT_C CMTPFSEntryCache::~CMTPFSEntryCache()
    40 EXPORT_C CMTPFSEntryCache::~CMTPFSEntryCache()
    38     {
    41     {
    39     __FLOG(_L8("~CMTPFSEntryCache - Entry"));
    42     OstTraceFunctionEntry0( CMTPFSENTRYCACHE_CMTPFSENTRYCACHE_DES_ENTRY );
    40     __FLOG(_L8("~CMTPFSEntryCache - Exit"));
    43     OstTraceFunctionExit0( CMTPFSENTRYCACHE_CMTPFSENTRYCACHE_DES_EXIT );
    41     __FLOG_CLOSE;
       
    42     }
    44     }
    43 
    45 
    44 EXPORT_C TBool CMTPFSEntryCache::IsOnGoing() const
    46 EXPORT_C TBool CMTPFSEntryCache::IsOnGoing() const
    45     {
    47     {
    46     return iIsOngoing;
    48     return iIsOngoing;
    47     }
    49     }
    48 
    50 
    49 EXPORT_C void CMTPFSEntryCache::SetOnGoing(TBool aOnGoing)
    51 EXPORT_C void CMTPFSEntryCache::SetOnGoing(TBool aOnGoing)
    50     {
    52     {
    51     __FLOG(_L8("SetOnGoing - Entry"));
    53     OstTraceFunctionEntry0( CMTPFSENTRYCACHE_SETONGOING_ENTRY );
    52     iIsOngoing = aOnGoing;
    54     iIsOngoing = aOnGoing;
    53     __FLOG(_L8("SetOnGoing - Exit"));
    55     OstTraceFunctionExit0( CMTPFSENTRYCACHE_SETONGOING_EXIT );
    54     }
    56     }
    55 
    57 
    56 EXPORT_C TUint32 CMTPFSEntryCache::TargetHandle() const
    58 EXPORT_C TUint32 CMTPFSEntryCache::TargetHandle() const
    57     {
    59     {
    58     return iTargetHandle;
    60     return iTargetHandle;
    59     }
    61     }
    60 
    62 
    61 EXPORT_C void CMTPFSEntryCache::SetTargetHandle(TUint32 aHandle)
    63 EXPORT_C void CMTPFSEntryCache::SetTargetHandle(TUint32 aHandle)
    62     {
    64     {
    63     __FLOG(_L8("SetTargetHandle - Entry"));
    65     OstTraceFunctionEntry0( CMTPFSENTRYCACHE_SETTARGETHANDLE_ENTRY );
    64     iTargetHandle = aHandle;
    66     iTargetHandle = aHandle;
    65     __FLOG(_L8("SetTargetHandle - Exit"));
    67     OstTraceFunctionExit0( CMTPFSENTRYCACHE_SETTARGETHANDLE_EXIT );
    66     }
    68     }
    67 
    69 
    68 EXPORT_C TEntry& CMTPFSEntryCache::FileEntry()
    70 EXPORT_C TEntry& CMTPFSEntryCache::FileEntry()
    69     {
    71     {
    70     return iFileEntry;
    72     return iFileEntry;
    71     }
    73     }
    72 
    74 
    73 EXPORT_C void CMTPFSEntryCache::SetFileEntry(const TEntry& aEntry)
    75 EXPORT_C void CMTPFSEntryCache::SetFileEntry(const TEntry& aEntry)
    74     {
    76     {
    75     __FLOG(_L8("SetFileEntry - Entry"));
    77     OstTraceFunctionEntry0( CMTPFSENTRYCACHE_SETFILEENTRY_ENTRY );
    76     iFileEntry = aEntry;
    78     iFileEntry = aEntry;
    77     __FLOG(_L8("SetFileEntry - Exit"));
    79     OstTraceFunctionExit0( CMTPFSENTRYCACHE_SETFILEENTRY_EXIT );
    78     }
    80     }
    79 
    81 
    80 CMTPFSEntryCache::CMTPFSEntryCache():iIsOngoing(EFalse), iTargetHandle(KMTPHandleNone)
    82 CMTPFSEntryCache::CMTPFSEntryCache():iIsOngoing(EFalse), iTargetHandle(KMTPHandleNone)
    81     {
    83     {
    82     __FLOG_OPEN(KMTPSubsystem, KComponent);
       
    83     __FLOG(_L8("CMTPFSEntryCache - Entry"));
       
    84     __FLOG(_L8("CMTPFSEntryCache - Exit"));
       
    85     }
    84     }
    86 
    85 
    87 void CMTPFSEntryCache::ConstructL()
    86 void CMTPFSEntryCache::ConstructL()
    88     {    
    87     {    
       
    88     OstTraceFunctionEntry0( CMTPFSENTRYCACHE_CONSTRUCTL_ENTRY );
       
    89     OstTraceFunctionExit0( CMTPFSENTRYCACHE_CONSTRUCTL_EXIT );
    89     }
    90     }