menufw/menufwui/matrixmenu/inc/mmnomemory.h
changeset 0 f72a12da539e
equal deleted inserted replaced
-1:000000000000 0:f72a12da539e
       
     1 /*
       
     2 * Copyright (c) 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: Subscribes properties from P&S
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef CMMNOMEMORY_H
       
    19 #define CMMNOMEMORY_H
       
    20 
       
    21 #include <e32base.h>	// For CActive, link against: euser.lib
       
    22 
       
    23 /**
       
    24 
       
    25  *  An active object for generating a message.
       
    26  *
       
    27  *  It generates an appropriate message for user
       
    28  *  when Matrix Menu is out of memory.
       
    29  *
       
    30  *  @since S60 v5.0
       
    31  *  @ingroup group_matrixmenu
       
    32  */
       
    33 NONSHARABLE_CLASS( CMmNoMemory ) : public CActive
       
    34     {
       
    35 public:
       
    36     ~CMmNoMemory();
       
    37 
       
    38     static CMmNoMemory* NewL();
       
    39 
       
    40     static CMmNoMemory* NewLC();
       
    41 
       
    42 public:
       
    43     // New functions
       
    44 	
       
    45     /*
       
    46      * Submit a service request.
       
    47      * It completes on iStatus to generate an event.
       
    48      */
       
    49     void Start();
       
    50 
       
    51 private:
       
    52     CMmNoMemory();
       
    53 
       
    54     void ConstructL();
       
    55 
       
    56 private:
       
    57     // From CActive
       
    58     
       
    59     /**
       
    60      * Handle completion.
       
    61      * It leaves (KErrNoMemory) to generate an appropriate message.
       
    62      */
       
    63     void RunL();
       
    64 
       
    65     void DoCancel();
       
    66 
       
    67     TInt RunError(TInt aError);
       
    68 
       
    69 private:
       
    70     };
       
    71 
       
    72 #endif // CMMNOMEMORY_H