www.pudn.com > otsms > SMSComp.hpp
// Borland C++ Builder // Copyright (c) 1995, 1999 by Borland International // All rights reserved // (DO NOT EDIT: machine generated header) 'SMSComp.pas' rev: 5.00 #ifndef SMSCompHPP #define SMSCompHPP #pragma delphiheader begin #pragma option push -w- #pragma option push -Vx #include// Pascal unit #include // Pascal unit #include // Pascal unit #include // Pascal unit #include // Pascal unit #include // Pascal unit #include // Pascal unit #include // Pascal unit #include // Pascal unit #include // Pascal unit #include // Pascal unit #include // Pascal unit #include // Pascal unit #include // Pascal unit //-- user supplied ----------------------------------------------------------- namespace Smscomp { //-- type declarations ------------------------------------------------------- typedef void __fastcall (__closure *TSMSMsgEvent)(int Index, System::TDateTime Time, AnsiString Text , AnsiString Send, Graphics::TPicture* Pict); typedef void __fastcall (__closure *TSMSRepEvent)(int Index, System::TDateTime Time, AnsiString Send , int Delivery); #pragma option push -b- enum TPhoneFamily { pf3xxx, pf51xx, pf61xx, pf62xx, pf71xx, pf8xxx }; #pragma option pop class DELPHICLASS TOxygenSMS; class PASCALIMPLEMENTATION TOxygenSMS : public Classes::TComponent { typedef Classes::TComponent inherited; private: Nokiaconn::TNokiaConnection* nc; Nokiasms::TNokiaSMS* sms; Nokiasms::TSMSCenterProfile smsc; TPhoneFamily fModel; int fExactModel; TSMSMsgEvent fMsgReceived; TSMSRepEvent fRepReceived; bool fAutoDelMsg; bool fAutoDelRep; Classes::TList* RepList; Classes::TList* MesList; Extctrls::TTimer* RecTimer; int __fastcall GetComNumber(void); void __fastcall SetComNumber(int Value); Byte __fastcall GetConnMode(void); void __fastcall SetConnMode(Byte Value); int __fastcall GetTimeOut(void); void __fastcall SetTimeOut(int Value); int __fastcall GetState(void); void __fastcall MsgRec(const Nokiasms::TSMSMessageInfo &MsgInfo); void __fastcall RepRec(const Nokiasms::TSMSMessageInfo &MsgInfo); void __fastcall RecTimerOnTimer(System::TObject* Sender); int __fastcall GetBatteryLevel(void); int __fastcall GetSignalLevel(void); AnsiString __fastcall GetIMEI(); AnsiString __fastcall GetHW(); AnsiString __fastcall GetSW(); AnsiString __fastcall GetSWDate(); AnsiString __fastcall GetPhoneType(); void __fastcall SetModel(Byte Model); Byte __fastcall GetModel(void); public: __fastcall virtual TOxygenSMS(Classes::TComponent* AOwner); __fastcall virtual ~TOxygenSMS(void); bool __fastcall Open(void); void __fastcall Close(void); AnsiString __fastcall GetSMSCNumber(); void __fastcall SetSMSCNumber(AnsiString PhoneNumber); bool __fastcall SendSMSMessage(AnsiString PhoneNumber, AnsiString Text, Byte Validity, bool NeedReport , bool IsUnicode, Graphics::TBitmap* Picture); bool __fastcall SendUnicodeSMSMessage(AnsiString PhoneNumber, WideString Text, Byte Validity, bool NeedReport, Graphics::TBitmap* Picture); int __fastcall GetInboxCount(void); int __fastcall GetInboxBusy(void); AnsiString __fastcall GetInboxLocations(); void __fastcall GetInboxInfo(int &Count, int &Busy, AnsiString &Locations); bool __fastcall ReadSMSMessage(int Index, Word &IsMsg, System::TDateTime &Time, AnsiString &Text, AnsiString &Send, int &Delivery, Graphics::TBitmap* &Picture); bool __fastcall DeleteSMSMessage(int Index); bool __fastcall CheckConnection(void); __property int BatteryLevel = {read=GetBatteryLevel, nodefault}; __property int SignalLevel = {read=GetSignalLevel, nodefault}; __property AnsiString IMEI = {read=GetIMEI}; __property AnsiString HW = {read=GetHW}; __property AnsiString SW = {read=GetSW}; __property AnsiString SWDate = {read=GetSWDate}; __property AnsiString PhoneType = {read=GetPhoneType}; __published: __property int ComNumber = {read=GetComNumber, write=SetComNumber, nodefault}; __property Byte ConnectionMode = {read=GetConnMode, write=SetConnMode, nodefault}; __property int State = {read=GetState, nodefault}; __property Byte Model = {read=GetModel, write=SetModel, default=2}; __property bool AutoDeleteMessages = {read=fAutoDelMsg, write=fAutoDelMsg, default=0}; __property bool AutoDeleteReports = {read=fAutoDelRep, write=fAutoDelRep, default=0}; __property int SendTimeOut = {read=GetTimeOut, write=SetTimeOut, nodefault}; __property TSMSMsgEvent OnSMSMessageReceived = {read=fMsgReceived, write=fMsgReceived}; __property TSMSRepEvent OnSMSReportReceived = {read=fRepReceived, write=fRepReceived}; }; //-- var, const, procedure --------------------------------------------------- extern PACKAGE void __fastcall Register(void); } /* namespace Smscomp */ #if !defined(NO_IMPLICIT_NAMESPACE_USE) using namespace Smscomp; #endif #pragma option pop // -w- #pragma option pop // -Vx #pragma delphiheader end. //-- end unit ---------------------------------------------------------------- #endif // SMSComp