CButton* CButton::NewLC(RWindowGroup* aWg,MButtonCallBack* aCB,TInt aResourceId) { CButton* self = new (ELeave) CButton(); CleanupStack::PushL(self); self->ConstructL(aWg,aCB,aResourceId); return self; }
CButton* CButton::NewL(MConnect* aConnect) { CButton* self = new(ELeave) CButton(aConnect); CleanupStack::PushL(self); self->ConstructL(); CleanupStack::Pop(self); return self; }