The Code-Bin
Links
Home
Add your code!
All Listings
About
Latest Entry
Featured Scripts
Author's Website
Latest Entries
FFMPEG Thumbnail Scr...
PHP, 0.8KB
Jul. 29, 10:24pm
John
Z80 Assembler, 190 bytes
Feb. 17, 3:36am
John
Z80 Assembler, 176 bytes
Sep. 13, 2:19am
John
Z80 Assembler, 77 bytes
Sep. 13, 2:18am
John
Z80 Assembler, 209 bytes
Sep. 13, 2:17am
untitled C++ Code
Posted by: sasss | September 1, 2010 @ 2:55am
C++ Code
[
Download
]
class RFID:public SubjectListener { Q_OBJECT public: RFID(MainWindow * ui, QObject *parent = 0){this->ui=ui;}; void subjectUpdated(Event * e) { int i; printf("\n CALLBACKKKK \n"); switch(e->getType()){ case NOTIFY_DATA: { unsigned char *id=((EventIdnova *)e)->getSourceObject()->getTagId(); printf("TAG ID: "); for(i=0; i<sizeof(tag_id); i++) printf("%x ",id[i]); printf("\n"); ((EventIdnova *)e)->getSourceObject()->beepBuzzer (1000); } } break; case WRITE_DATA: printf("WRITE_DATA\n"); // flag_write=((EventIdnova *)e)->getLastOperation (); break; } } private : MainWindow *ui; int z; };
Syntax Highlighting
[
Open in new window
]
Author Comments
none
Rating
4.38 / 8
64 Votes
http://codebin.yi.org/820
page generated in 0.00 seconds