uiacceltk/hitchcock/goommonitor/inc/goomactionref.h
changeset 38 69409653e863
parent 13 8f67d927ea57
equal deleted inserted replaced
32:27a3ad0677c1 38:69409653e863
    21 
    21 
    22 #include <e32base.h>
    22 #include <e32base.h>
    23 #include "goomactionconfig.h"
    23 #include "goomactionconfig.h"
    24 
    24 
    25 class CGOomRunPlugin;
    25 class CGOomRunPlugin;
       
    26 class CGOomAction;
    26 
    27 
    27 /**
    28 /**
    28  *  Encapsulates a reference to an action. 
    29  *  Encapsulates a reference to an action. 
    29  *  
    30  *  
    30  *  Objects of this T-class are instantiated at memory freeing time in preference to the  
    31  *  Objects of this T-class are instantiated at memory freeing time in preference to the  
    59     TInt WgId() const;
    60     TInt WgId() const;
    60     TInt WgIndex() const;
    61     TInt WgIndex() const;
    61     CGOomRunPlugin& RunPlugin();
    62     CGOomRunPlugin& RunPlugin();
    62     TInt CloseTimeout() const;
    63     TInt CloseTimeout() const;
    63     TInt WaitAfterClose() const;
    64     TInt WaitAfterClose() const;
       
    65     TBool IsRunning();
    64 
    66 
    65 private: //data
    67 private: //data
    66     
    68     
    67     TActionType iType;
    69     TActionType iType;
    68     TUint iPriority;
    70     TUint iPriority;
    71     TInt iWgId; //For AppClose
    73     TInt iWgId; //For AppClose
    72     TInt iWgIndex;
    74     TInt iWgIndex;
    73     CGOomRunPlugin* iRunPlugin; //For Plugins. Not owned
    75     CGOomRunPlugin* iRunPlugin; //For Plugins. Not owned
    74     TInt iCloseTimeout; //For AppClose
    76     TInt iCloseTimeout; //For AppClose
    75     TInt iWaitAfterClose; //For AppClose
    77     TInt iWaitAfterClose; //For AppClose
       
    78 public:
       
    79     CGOomAction* iAppPlugin; // because of stupid desing, not owned
    76     };
    80     };
    77 
    81 
    78 #endif /*GOOMACTIONREF_H_*/
    82 #endif /*GOOMACTIONREF_H_*/