47 |
47 |
48 //constructor for Plugin actions |
48 //constructor for Plugin actions |
49 TActionRef(TActionType aType, TInt aPriority, TGOomSyncMode aSyncMode, TInt aRamEstimate, CGOomRunPlugin& aRunPlugin, TUint aWgIndexOfTargetApp); |
49 TActionRef(TActionType aType, TInt aPriority, TGOomSyncMode aSyncMode, TInt aRamEstimate, CGOomRunPlugin& aRunPlugin, TUint aWgIndexOfTargetApp); |
50 |
50 |
51 //constructor for AppClose actions |
51 //constructor for AppClose actions |
52 TActionRef(TActionType aType, TInt aPriority, TGOomSyncMode aSyncMode, TInt aRamEstimate, TInt aWgId, TUint aWgIndex); |
52 TActionRef(TActionType aType, TInt aPriority, TGOomSyncMode aSyncMode, TInt aRamEstimate, TInt aWgId, TUint aWgIndex, TInt aCloseTimeout = 0, TInt aWaitAfterClose = 0); |
53 |
53 |
54 TActionType Type() const; |
54 TActionType Type() const; |
55 TUint Priority() const; |
55 TUint Priority() const; |
56 void SetPriority(TUint); |
56 void SetPriority(TUint); |
57 TGOomSyncMode SyncMode() const; |
57 TGOomSyncMode SyncMode() const; |
58 TInt RamEstimate() const; |
58 TInt RamEstimate() const; |
59 TInt WgId() const; |
59 TInt WgId() const; |
60 TInt WgIndex() const; |
60 TInt WgIndex() const; |
61 CGOomRunPlugin& RunPlugin(); |
61 CGOomRunPlugin& RunPlugin(); |
|
62 TInt CloseTimeout() const; |
|
63 TInt WaitAfterClose() const; |
62 |
64 |
63 private: //data |
65 private: //data |
64 |
66 |
65 TActionType iType; |
67 TActionType iType; |
66 TUint iPriority; |
68 TUint iPriority; |
67 TGOomSyncMode iSyncMode; //needed as we don't have reference to the config |
69 TGOomSyncMode iSyncMode; //needed as we don't have reference to the config |
68 TInt iRamEstimate; //needed as we don't have reference to the config |
70 TInt iRamEstimate; //needed as we don't have reference to the config |
69 TInt iWgId; //For AppClose |
71 TInt iWgId; //For AppClose |
70 TInt iWgIndex; |
72 TInt iWgIndex; |
71 CGOomRunPlugin* iRunPlugin; //For Plugins. Not owned |
73 CGOomRunPlugin* iRunPlugin; //For Plugins. Not owned |
|
74 TInt iCloseTimeout; //For AppClose |
|
75 TInt iWaitAfterClose; //For AppClose |
72 }; |
76 }; |
73 |
77 |
74 #endif /*GOOMACTIONREF_H_*/ |
78 #endif /*GOOMACTIONREF_H_*/ |