pushmtm/MtmCliSrvSrc/PushMtmServer.cpp
branchRCL_3
changeset 65 8e6fa1719340
parent 0 84ad3b177aa3
equal deleted inserted replaced
64:6385c4c93049 65:8e6fa1719340
       
     1 /*
       
     2 * Copyright (c) 2002 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 the License "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:  Server Mtm class definition
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 // INCLUDE FILES
       
    21 
       
    22 #include "PushMtmServer.h"
       
    23 
       
    24 // ================= MEMBER FUNCTIONS =======================
       
    25 
       
    26 // ---------------------------------------------------------
       
    27 // CPushMtmServer::NewL
       
    28 // ---------------------------------------------------------
       
    29 //
       
    30 EXPORT_C CPushMtmServer* CPushMtmServer::NewL
       
    31     ( CRegisteredMtmDll& aRegisteredMtmDll, CMsvServerEntry* aInitialEntry )
       
    32 	{
       
    33 	CPushMtmServer* server =
       
    34         new (ELeave) CPushMtmServer( aRegisteredMtmDll, aInitialEntry );
       
    35 	CleanupStack::PushL( server );
       
    36 	server->ConstructL();
       
    37 	CleanupStack::Pop();    // server
       
    38 	return server;
       
    39 	}
       
    40 
       
    41 // ---------------------------------------------------------
       
    42 // CPushMtmServer::~CPushMtmServer
       
    43 // ---------------------------------------------------------
       
    44 //
       
    45 CPushMtmServer::~CPushMtmServer()
       
    46 	{
       
    47 	Cancel();
       
    48 	}
       
    49 
       
    50 // ---------------------------------------------------------
       
    51 // CPushMtmServer::CPushMtmServer
       
    52 // ---------------------------------------------------------
       
    53 //
       
    54 CPushMtmServer::CPushMtmServer
       
    55 ( CRegisteredMtmDll& aRegisteredMtmDll, CMsvServerEntry* aInitialEntry )
       
    56 	: 	CBaseServerMtm( aRegisteredMtmDll, aInitialEntry ),
       
    57 		iProgressPckg( iProgress )
       
    58 	{
       
    59 	}
       
    60 		
       
    61 // ---------------------------------------------------------
       
    62 // CPushMtmServer::ConstructL
       
    63 // ---------------------------------------------------------
       
    64 //
       
    65 void CPushMtmServer::ConstructL()
       
    66 	{
       
    67 	CActiveScheduler::Add( this );
       
    68 	}
       
    69 
       
    70 // ---------------------------------------------------------
       
    71 // CPushMtmServer::CopyToLocalL
       
    72 // ---------------------------------------------------------
       
    73 //
       
    74 void CPushMtmServer::CopyToLocalL( const CMsvEntrySelection& /*aSelection*/,
       
    75                             TMsvId /*aDestination*/, TRequestStatus& /*aStatus*/ )
       
    76 	{
       
    77     User::Leave( KErrNotSupported );
       
    78 	}
       
    79 
       
    80 // ---------------------------------------------------------
       
    81 // CPushMtmServer::CopyFromLocalL
       
    82 // ---------------------------------------------------------
       
    83 //
       
    84 void CPushMtmServer::CopyFromLocalL( const CMsvEntrySelection& /*aSelection*/,
       
    85                             TMsvId /*aDestination*/, TRequestStatus& /*aStatus*/ )
       
    86 	{
       
    87     User::Leave( KErrNotSupported );
       
    88 	}
       
    89 
       
    90 // ---------------------------------------------------------
       
    91 // CPushMtmServer::CopyWithinServiceL
       
    92 // ---------------------------------------------------------
       
    93 //
       
    94 void CPushMtmServer::CopyWithinServiceL( const CMsvEntrySelection& /*aSelection*/,
       
    95                             TMsvId /*aDestination*/, TRequestStatus& /*aStatus*/ )
       
    96 	{
       
    97     User::Leave( KErrNotSupported );
       
    98 	}
       
    99 
       
   100 // ---------------------------------------------------------
       
   101 // CPushMtmServer::MoveToLocalL
       
   102 // ---------------------------------------------------------
       
   103 //
       
   104 void CPushMtmServer::MoveToLocalL( const CMsvEntrySelection& /*aSelection*/,
       
   105                             TMsvId /*aDestination*/, TRequestStatus& /*aStatus*/ )
       
   106 	{
       
   107     User::Leave( KErrNotSupported );
       
   108 	}
       
   109 
       
   110 // ---------------------------------------------------------
       
   111 // CPushMtmServer::MoveFromLocalL
       
   112 // ---------------------------------------------------------
       
   113 //
       
   114 void CPushMtmServer::MoveFromLocalL( const CMsvEntrySelection& /*aSelection*/,
       
   115                             TMsvId /*aDestination*/, TRequestStatus& /*aStatus*/ )
       
   116 	{
       
   117     User::Leave( KErrNotSupported );
       
   118 	}
       
   119 
       
   120 // ---------------------------------------------------------
       
   121 // CPushMtmServer::MoveWithinServiceL
       
   122 // ---------------------------------------------------------
       
   123 //
       
   124 void CPushMtmServer::MoveWithinServiceL( const CMsvEntrySelection& /*aSelection*/,
       
   125                             TMsvId /*aDestination*/, TRequestStatus& /*aStatus*/ )
       
   126 	{
       
   127     User::Leave( KErrNotSupported );
       
   128 	}
       
   129 
       
   130 // ---------------------------------------------------------
       
   131 // CPushMtmServer::DeleteAllL
       
   132 // ---------------------------------------------------------
       
   133 //
       
   134 void CPushMtmServer::DeleteAllL
       
   135 ( const CMsvEntrySelection& /*aSelection*/, TRequestStatus& /*aStatus*/ )
       
   136 	{
       
   137     User::Leave( KErrNotSupported );
       
   138 	}
       
   139 
       
   140 // ---------------------------------------------------------
       
   141 // CPushMtmServer::CreateL
       
   142 // ---------------------------------------------------------
       
   143 //
       
   144 void CPushMtmServer::CreateL
       
   145 ( TMsvEntry /*aNewEntry*/, TRequestStatus& /*aStatus*/ )
       
   146     {
       
   147     User::Leave( KErrNotSupported );
       
   148     }
       
   149 
       
   150 // ---------------------------------------------------------
       
   151 // CPushMtmServer::ChangeL
       
   152 // ---------------------------------------------------------
       
   153 //
       
   154 void CPushMtmServer::ChangeL
       
   155 ( TMsvEntry /*aNewEntry*/, TRequestStatus& /*aStatus*/ )
       
   156     {
       
   157     User::Leave( KErrNotSupported );
       
   158     }
       
   159 
       
   160 // ---------------------------------------------------------
       
   161 // CPushMtmServer::StartCommandL
       
   162 // ---------------------------------------------------------
       
   163 //
       
   164 void CPushMtmServer::StartCommandL( CMsvEntrySelection& /*aSelection*/,
       
   165         TInt /*aCommand*/, const TDesC8& /*aParameter*/, TRequestStatus& /*aStatus*/ )
       
   166     {
       
   167     User::Leave( KErrNotSupported );
       
   168     }
       
   169 
       
   170 // ---------------------------------------------------------
       
   171 // CPushMtmServer::CommandExpected
       
   172 // ---------------------------------------------------------
       
   173 //
       
   174 TBool CPushMtmServer::CommandExpected()
       
   175     {
       
   176     return EFalse;
       
   177     }
       
   178 
       
   179 // ---------------------------------------------------------
       
   180 // CPushMtmServer::Progress
       
   181 // ---------------------------------------------------------
       
   182 //
       
   183 const TDesC8& CPushMtmServer::Progress()
       
   184     {
       
   185     return iProgressPckg;
       
   186     }
       
   187 
       
   188 // ---------------------------------------------------------
       
   189 // CPushMtmServer::DoComplete
       
   190 // ---------------------------------------------------------
       
   191 //
       
   192 void CPushMtmServer::DoComplete( TInt /*aError*/ )
       
   193     {
       
   194     }
       
   195 
       
   196 // ---------------------------------------------------------
       
   197 // CPushMtmServer::DoRunL
       
   198 // ---------------------------------------------------------
       
   199 //
       
   200 void CPushMtmServer::DoRunL()
       
   201 	{
       
   202     }
       
   203 
       
   204 // ---------------------------------------------------------
       
   205 // CPushMtmServer::DoCancel
       
   206 // ---------------------------------------------------------
       
   207 //
       
   208 void CPushMtmServer::DoCancel()
       
   209     {
       
   210     }
       
   211 
       
   212 //  End of File