messagingappbase/msgerrorwatcher/inc/MsgErrorSmsDiskSpaceObserver.h
changeset 0 72b543305e3a
equal deleted inserted replaced
-1:000000000000 0:72b543305e3a
       
     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:  
       
    15 *     CMsgErrorSmsDiskSpaceObserver declaration file
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 
       
    21 #ifndef __MSGERRORSMSDISKSPACEOBSERVER_H
       
    22 #define __MSGERRORSMSDISKSPACEOBSERVER_H
       
    23 
       
    24 //  INCLUDES
       
    25 #include <e32base.h>
       
    26 #include <e32property.h>
       
    27 
       
    28 // FORWARD DECLARATIONS
       
    29 class CMsgErrorWatcher;
       
    30 
       
    31 // CLASS DECLARATION
       
    32 
       
    33 /**
       
    34 * CMsgErrorSmsDiskSpaceObserver
       
    35 *
       
    36 * @lib msgerrorwatcher.dll
       
    37 * @since 5.0
       
    38 */
       
    39 class CMsgErrorSmsDiskSpaceObserver : public CActive
       
    40     {
       
    41     public:  // Constructors and destructor
       
    42         
       
    43         /**
       
    44         * Two-phased constructor.
       
    45         *
       
    46         * @param aWatcher A pointer to CMsgErrorWatcher
       
    47         */
       
    48         static CMsgErrorSmsDiskSpaceObserver* NewL( CMsgErrorWatcher* aWatcher);
       
    49         
       
    50         /**
       
    51         * Destructor.
       
    52         */
       
    53         virtual ~CMsgErrorSmsDiskSpaceObserver();
       
    54 
       
    55     private:
       
    56 
       
    57         /**
       
    58         * By default Symbian OS constructor is private.
       
    59         */
       
    60         void ConstructL();
       
    61 
       
    62         /**
       
    63         * Private C++ constructor.
       
    64         *
       
    65         * @param aWatcher A pointer to CMsgErrorWatcher
       
    66         */
       
    67         CMsgErrorSmsDiskSpaceObserver( CMsgErrorWatcher* aWatcher);
       
    68 
       
    69     private:
       
    70 
       
    71         /**
       
    72         * From CActive
       
    73         */
       
    74         void DoCancel();
       
    75 
       
    76         /**
       
    77         * From CActive
       
    78         */
       
    79         void RunL();
       
    80 
       
    81     private:    // Data
       
    82 
       
    83         CMsgErrorWatcher*   iWatcher;
       
    84         RProperty iSmsDiskSpaceProperty;
       
    85 
       
    86     };
       
    87 
       
    88 #endif      // __MSGERRORSMSDISKSPACEOBSERVER_H
       
    89             
       
    90 // End of File