taskswitcher/client/s60/inc/tssession.h
changeset 116 305818acdca4
equal deleted inserted replaced
112:dbfb5e38438b 116:305818acdca4
       
     1 /*
       
     2 * Copyright (c) 2009 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 #ifndef TSSESSION_H
       
    18 #define TSSESSION_H
       
    19 
       
    20 #include <e32base.h>
       
    21 
       
    22 #include "tstaskmonitorglobals.h"
       
    23 
       
    24 class CFbsBitmap;
       
    25 
       
    26 NONSHARABLE_CLASS( RTsSession ) : public RSessionBase
       
    27 {
       
    28 public:
       
    29     TInt Connect();
       
    30 
       
    31 public: // task monitor API
       
    32     HBufC8* TasksContentLC();
       
    33     void Subscribe(TRequestStatus& aStatus);
       
    34     void CancelSubscribe();
       
    35     void OpenTask(const TDesC8 &key);
       
    36     void CloseTask(const TDesC8 &key);  
       
    37 
       
    38 public: // screenshots API
       
    39     TInt RegisterScreenshot(CFbsBitmap *screenshot, TInt wgId, UpdatePriority priority);
       
    40     TInt UnregisterScreenshot(TInt wgId);
       
    41     TInt SetVisibility(TInt wgId, Visibility value);
       
    42     
       
    43 private:
       
    44     void RegisterScreenshotL(CFbsBitmap *screenshot, TInt wgId, UpdatePriority priority);
       
    45     void UnregisterScreenshotL(TInt wgId);
       
    46     void SetVisibilityL(TInt wgId, Visibility value);
       
    47     
       
    48 private:
       
    49     TInt StartServer();
       
    50 };
       
    51 
       
    52 #endif  // TSSESSION_H