connectivitymodules/SeCon/services/pcd/inc/sconinstqueue.h
branchRCL_3
changeset 19 0aa8cc770c8a
parent 18 453dfc402455
child 20 4a793f564d72
equal deleted inserted replaced
18:453dfc402455 19:0aa8cc770c8a
     1 /*
       
     2 * Copyright (c) 2005-2008 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:  Installer Queue header file
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef _SCONINSTQUEUE_H_
       
    20 #define _SCONINSTQUEUE_H_
       
    21 
       
    22 #include "sconqueue.h"
       
    23 
       
    24 
       
    25 //============================================================
       
    26 // Class CSConInstallerQueue declaration
       
    27 //============================================================	
       
    28 NONSHARABLE_CLASS ( CSConInstallerQueue ): public CActive, public CSConTaskQueue
       
    29 	{
       
    30 	public:
       
    31 		/**
       
    32 		 * Two-phase constructor
       
    33 		 * @return CSConInstallerQueue instance
       
    34 		 */
       
    35 		static CSConInstallerQueue* NewL( RFs& aFs );
       
    36 		/**
       
    37 		 * Destructor
       
    38 		 * @return none
       
    39 		 */
       
    40 		~CSConInstallerQueue();
       
    41 		
       
    42 		/**
       
    43 		 * Cancels a task
       
    44 		 * @param aTask The task number
       
    45 		 * @param aAllTasks If ETrue => cancel all tasks
       
    46 		 * @param aStatus The reply
       
    47     	 * @return none
       
    48 		 */	
       
    49 		void CancelTask( TInt aTask, TBool aAllTasks );
       
    50 		
       
    51 		/**
       
    52 		 * An address pointer to another queue
       
    53 		 * @param aTaskQueue The address to another queue
       
    54     	 * @return none
       
    55 		 */			
       
    56 		void QueueAddress( CSConBackupRestoreQueue*& aTaskQueue );
       
    57 		
       
    58 	private:
       
    59 		/**
       
    60 		 * Constructor
       
    61 		 * @return none
       
    62 		 */
       
    63 		CSConInstallerQueue( RFs& aFs );
       
    64 		/**
       
    65 		 * Initializes member data
       
    66 		 * @return none
       
    67 		 */
       
    68 		void ConstructL();
       
    69 		/**
       
    70 		 * Polls queue
       
    71 		 * @return none
       
    72 		 */
       
    73 		void PollQueue();
       
    74 		/**
       
    75 		 * Starts queue polling
       
    76 		 * @return none
       
    77 		 */
       
    78 		void StartQueue();
       
    79 		/**
       
    80 		 * Stops queue polling
       
    81 		 * @return none
       
    82 		 */
       
    83 		void StopQueue();
       
    84 		/**
       
    85 		 * Implementation of CActive::DoCancel()
       
    86 		 * @return none
       
    87 		 */
       
    88 		void DoCancel();
       
    89 		/**
       
    90 		 * Implementation of CActive::RunL()
       
    91 		 * @return none
       
    92 		 */
       
    93 		void RunL();
       
    94 		
       
    95 	private:
       
    96 		CSConAppInstaller* 			iInstaller;	
       
    97 		CSConBackupRestoreQueue*	iBRQueueAddress;
       
    98 		RFs&                        iFs; 
       
    99 	};
       
   100 
       
   101 
       
   102 #endif
       
   103 
       
   104 // End of file