equal
deleted
inserted
replaced
64 |
64 |
65 /******************************************************************************* */ |
65 /******************************************************************************* */ |
66 public: |
66 public: |
67 |
67 |
68 /** |
68 /** |
|
69 * This function is needed to find a real state by id |
|
70 * This might be used in switching states in watcher. New state object searched by its id |
|
71 * @return Id |
|
72 */ |
|
73 virtual TUsbStateIds Id(); |
|
74 |
|
75 /** |
69 * Destruction |
76 * Destruction |
70 */ |
77 */ |
71 virtual ~CUsbState(); |
78 virtual ~CUsbState(); |
|
79 |
|
80 /** |
|
81 * Two-phased constructor. |
|
82 * @param aWatcher owner |
|
83 */ |
|
84 static CUsbState* NewL(CUsbOtgWatcher* aWatcher); |
72 |
85 |
73 protected: |
86 protected: |
74 /** |
87 /** |
75 * default constructor is protected to be able to be inherited be child classes |
88 * default constructor is protected to be able to be inherited be child classes |
76 * @param aOwner owner of the state |
89 * @param aOwner owner of the state |
88 * @param aNewStateId new host state |
101 * @param aNewStateId new host state |
89 */ |
102 */ |
90 void ChangeHostStateL(TUsbStateIds aNewStateId); |
103 void ChangeHostStateL(TUsbStateIds aNewStateId); |
91 |
104 |
92 private: |
105 private: |
93 |
106 |
94 /** |
107 /** |
95 * This function is needed to find a real state by id |
108 * 2nd phase construction |
96 * This might be used in switching states in watcher. New state object searched by its id |
109 */ |
97 * @return Id |
110 void ConstructL(); |
98 */ |
|
99 virtual TUsbStateIds Id() = 0; |
|
100 |
111 |
101 /** |
112 /** |
102 * State machine calls this, state object to perform any initial |
113 * State machine calls this, state object to perform any initial |
103 * activity, once just entered this state |
114 * activity, once just entered this state |
104 * |
115 * |