idlefw/tsrc/wrtdataplugin/src/wrtdatapluginobserver.cpp
branchRCL_3
changeset 28 053c6c7c14f3
equal deleted inserted replaced
27:2c7f27287390 28:053c6c7c14f3
       
     1 /*
       
     2 * Copyright (c) 2010 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 
       
    18 
       
    19 #include "wrtdatapluginobserver.h"
       
    20 
       
    21 CWrtDataPluginObserver::CWrtDataPluginObserver()
       
    22     {
       
    23     // No implementation required
       
    24     }
       
    25 
       
    26 CWrtDataPluginObserver::~CWrtDataPluginObserver()
       
    27     {
       
    28     }
       
    29 
       
    30 CWrtDataPluginObserver* CWrtDataPluginObserver::NewLC()
       
    31     {
       
    32     CWrtDataPluginObserver* self = new (ELeave) CWrtDataPluginObserver();
       
    33     CleanupStack::PushL(self);
       
    34     self->ConstructL();
       
    35     return self;
       
    36     }
       
    37 
       
    38 CWrtDataPluginObserver* CWrtDataPluginObserver::NewL()
       
    39     {
       
    40     CWrtDataPluginObserver* self = CWrtDataPluginObserver::NewLC();
       
    41     CleanupStack::Pop(); // self;
       
    42     return self;
       
    43     }
       
    44 
       
    45 void CWrtDataPluginObserver::ConstructL()
       
    46     {
       
    47 
       
    48     }
       
    49 
       
    50 TInt CWrtDataPluginObserver::StartTransaction( TInt /*aTxId*/ )
       
    51     {
       
    52     return KErrNotSupported;
       
    53     }
       
    54 
       
    55 TInt CWrtDataPluginObserver::Commit( TInt /*aTxId */)
       
    56     {
       
    57     return KErrNone;
       
    58     }
       
    59 
       
    60 
       
    61 TInt CWrtDataPluginObserver::CancelTransaction( TInt /*aTxId */)
       
    62     {
       
    63     return KErrNone;
       
    64     }
       
    65 
       
    66 
       
    67 TBool CWrtDataPluginObserver::CanPublish( CHsContentPublisher& /*aPlugin*/, TInt /*aContent*/, TInt /*aIndex */)
       
    68     {
       
    69     return EFalse;
       
    70     }
       
    71 
       
    72 
       
    73 TInt CWrtDataPluginObserver::Publish( CHsContentPublisher& /*aPlugin*/, TInt /*aContent*/, TInt /*aResource*/, TInt /*aIndex*/ )
       
    74     {
       
    75     return KErrNotSupported;
       
    76     }
       
    77 
       
    78 
       
    79 TInt CWrtDataPluginObserver::Publish( CHsContentPublisher& /*aPlugin*/, TInt /*aContent*/, const TDesC16& /*aText*/, TInt /*aIndex */)
       
    80     {
       
    81     return KErrNotSupported;
       
    82     }
       
    83 
       
    84 
       
    85 TInt CWrtDataPluginObserver::Publish( CHsContentPublisher& /*aPlugin*/, TInt /*aContent*/, const TDesC8& /*aBuf*/, TInt /*aIndex */)
       
    86     {
       
    87     return KErrNotSupported;
       
    88     }
       
    89     
       
    90 
       
    91 TInt CWrtDataPluginObserver::Publish( CHsContentPublisher& /*aPlugin*/, TInt /*aContent*/, RFile& /*aFile*/, TInt /*aIndex */)
       
    92     {
       
    93     return KErrNotSupported;
       
    94     }
       
    95 
       
    96 TInt CWrtDataPluginObserver::Clean( CHsContentPublisher& /*aPlugin*/, TInt /*aContent*/, TInt /*aIndex */)
       
    97     {
       
    98     return KErrNotSupported;
       
    99     }
       
   100 
       
   101 
       
   102 TAny* CWrtDataPluginObserver::Extension( TUid /*aUid */)
       
   103     {
       
   104     return NULL;
       
   105     }
       
   106 
       
   107 
       
   108 TBool CWrtDataPluginObserver::RequiresSubscription( const THsPublisherInfo& /*aPublisherInfo */) const
       
   109     {
       
   110     return EFalse;
       
   111     }
       
   112     
       
   113 
       
   114 TInt CWrtDataPluginObserver::SetProperty( CHsContentPublisher& /*aPlugin*/,
       
   115             const TDesC8& /*aElementId*/,
       
   116             const TDesC8& /*aPropertyName*/,
       
   117             const TDesC8& /*aPropertyValue */)
       
   118     {
       
   119     return KErrNotSupported;
       
   120     }
       
   121     
       
   122 TInt CWrtDataPluginObserver::SetProperty( CHsContentPublisher& /*aPlugin*/,
       
   123             const TDesC8& /*aElementId*/,
       
   124             const TDesC8& /*aPropertyName*/,
       
   125             const TDesC8& /*aPropertyValue*/,  
       
   126             MAiContentObserver::TValueType /*aValueType*/)
       
   127     {
       
   128     return KErrNotSupported;
       
   129     }
       
   130