messagingfw/biomsgfw/BIOSSRC/BIOSMTM.CPP
changeset 62 db3f5fa34ec7
parent 0 8e480a14352b
child 44 7c176670643f
equal deleted inserted replaced
60:9f5ae1728557 62:db3f5fa34ec7
       
     1 // Copyright (c) 1998-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // BIOSVRMTM.CPP
       
    15 // 
       
    16 //
       
    17 
       
    18 #include <e32uid.h>   // uids for Epoc32
       
    19 #include <bioscmds.h>
       
    20 #include "BIOSMTM.H"
       
    21 
       
    22 #include <biodb.h>	// bio database
       
    23 
       
    24 #include <biouids.h>	// contains panic codes
       
    25 #include "regpsdll.h"   // Parser Registry - used to load the parser
       
    26 #include "bsp.h"			// CBaseParser
       
    27 
       
    28 // CRichText etc. includes
       
    29 #include <txtrich.h>
       
    30 #include <txtfmlyr.h>
       
    31 
       
    32 #ifdef SYMBIAN_ENABLE_SPLIT_HEADERS
       
    33 #include <bifchangeobserver.h>
       
    34 #include <biomessageuids.h>
       
    35 #include "tmsvbioinfo.h"
       
    36 #endif
       
    37 
       
    38 EXPORT_C CBIOServerMtm* CBIOServerMtm::NewL(CRegisteredMtmDll& aRegisteredMtmDll, CMsvServerEntry* aEntry)
       
    39 	{
       
    40 	CBIOServerMtm* mysvrmtm=new(ELeave) CBIOServerMtm(aRegisteredMtmDll, aEntry);
       
    41 	CleanupStack::PushL(mysvrmtm);
       
    42 	mysvrmtm->ConstructL();
       
    43 	CleanupStack::Pop();
       
    44 	return mysvrmtm;
       
    45 	}
       
    46 
       
    47 CBIOServerMtm::~CBIOServerMtm()
       
    48 	{
       
    49 	Cancel();
       
    50 	}
       
    51 
       
    52 //
       
    53 // Unsupported MTM commands
       
    54 //
       
    55 void CBIOServerMtm::CopyToLocalL(const CMsvEntrySelection& /*aSelection*/,TMsvId /*aDestination*/, TRequestStatus& /*aStatus*/)
       
    56 	{
       
    57 	User::Leave(KErrNotSupported);
       
    58 	}
       
    59 
       
    60 void CBIOServerMtm::CopyFromLocalL(const CMsvEntrySelection& /*aSelection*/,TMsvId /*aDestination*/, TRequestStatus& /*aStatus*/)
       
    61 	{
       
    62 	User::Leave(KErrNotSupported);
       
    63 	}
       
    64 
       
    65 void CBIOServerMtm::CopyWithinServiceL(const CMsvEntrySelection& /*aSelection*/,TMsvId /*aDestination*/, TRequestStatus& /*aStatus*/)
       
    66 	{
       
    67 	User::Leave(KErrNotSupported);
       
    68 	}
       
    69 
       
    70 void CBIOServerMtm::MoveToLocalL(const CMsvEntrySelection& /*aSelection*/,TMsvId /*aDestination*/, TRequestStatus& /*aStatus*/)
       
    71 	{
       
    72 	User::Leave(KErrNotSupported);
       
    73 	}
       
    74 
       
    75 void CBIOServerMtm::MoveFromLocalL(const CMsvEntrySelection& /*aSelection*/,TMsvId /*aDestination*/, TRequestStatus& /*aStatus*/)
       
    76 	{
       
    77 	User::Leave(KErrNotSupported);
       
    78 	}
       
    79 
       
    80 void CBIOServerMtm::MoveWithinServiceL(const CMsvEntrySelection& /*aSelection*/,TMsvId /*aDestination*/, TRequestStatus& /*aStatus*/)
       
    81 	{
       
    82 	User::Leave(KErrNotSupported);
       
    83 	}
       
    84 
       
    85 void CBIOServerMtm::DeleteAllL(const CMsvEntrySelection& /*aSelection*/, TRequestStatus& /*aStatus*/)
       
    86 	{
       
    87 	User::Leave(KErrNotSupported);
       
    88 	}
       
    89 
       
    90 void CBIOServerMtm::CreateL(TMsvEntry /*aNewEntry*/, TRequestStatus& /*aStatus*/)
       
    91 	{
       
    92 	User::Leave(KErrNotSupported);
       
    93 	}
       
    94 
       
    95 void CBIOServerMtm::ChangeL(TMsvEntry /*aNewEntry*/, TRequestStatus& /*aStatus*/)
       
    96 	{
       
    97 	User::Leave(KErrNotSupported);
       
    98 	}
       
    99 
       
   100 //
       
   101 // BIOServer specific commands
       
   102 //
       
   103 void CBIOServerMtm::StartCommandL(CMsvEntrySelection& /*aSelection*/, TInt /*aCommand*/, const TDesC8& /*aParameter*/, TRequestStatus& /*aStatus*/)
       
   104 	{
       
   105 	User::Leave(KErrNotSupported);
       
   106 	}
       
   107 
       
   108 //
       
   109 // 
       
   110 //
       
   111 TBool CBIOServerMtm::CommandExpected()
       
   112 	{
       
   113 	return EFalse;
       
   114 	}
       
   115 //
       
   116 //
       
   117 //
       
   118 const TDesC8& CBIOServerMtm::Progress()
       
   119 	{
       
   120 	User::Panic(_L("BIOS"), KBIOMessageSvrNotSupported);
       
   121 	return KNullDesC8;
       
   122 	}
       
   123 
       
   124 //
       
   125 // 
       
   126 //
       
   127 void CBIOServerMtm::DoCancel()
       
   128 	{
       
   129 	}
       
   130 
       
   131 //
       
   132 //
       
   133 //
       
   134 void CBIOServerMtm::DoRunL()
       
   135 	{
       
   136 	User::Leave(KErrNotSupported);
       
   137 	}
       
   138 
       
   139 //
       
   140 //
       
   141 //
       
   142 void CBIOServerMtm::DoComplete(TInt /*aError*/)
       
   143 	{
       
   144 	}
       
   145 
       
   146 
       
   147 //
       
   148 // Constructor
       
   149 //
       
   150 CBIOServerMtm::CBIOServerMtm(CRegisteredMtmDll& aRegisteredMtmDll, CMsvServerEntry* aEntry):
       
   151 CBaseServerMtm(aRegisteredMtmDll, aEntry)
       
   152 	{
       
   153 	}
       
   154 		
       
   155 //
       
   156 // 2nd phase construction
       
   157 //
       
   158 void CBIOServerMtm::ConstructL()
       
   159 	{
       
   160 
       
   161 	CActiveScheduler::Add(this);
       
   162 	}
       
   163 
       
   164