00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00022 #ifndef __PUBSUB_H__
00023 #define __PUBSUB_H__
00024
00025 #include <e32base.h>
00026 #include <e32cons.h>
00027 #include <e32property.h>
00028
00029 const TUint KMyPropertyName = 0x0003;
00030 const TUid KMyPropertyCat = {0x10034567};
00031
00032 const TInt KArraySize = 10;
00033 const TInt KBufSize = 20;
00034 _LIT16(KStop,"STOP");
00035
00036 const TInt KMax = 100;
00037 const TInt KTimeInterval = 3000000;
00038
00039 _LIT(KTxtEnter,"Press enter to publish\n");
00040 _LIT(KTxtNewLine,"\n");
00041 _LIT(KTxtSpecPublish,"**** PUBLISH [SPECULATIVE] ****\n\n");
00042 _LIT(KTxtCreateHandle,"Creating a handle to the property...\n");
00043 _LIT(KTxtPublish,"Publishing the byte-array property...\n");
00044 _LIT(KTxtArray,"Array contents:\n");
00045 _LIT(KTxtArrayElement,"%x\t");
00046 _LIT(KTxtNotFound,"Property Not Found\n");
00047 _LIT(KTxtSpecSub,"*** SUBSCRIBER [SPECULATIVE] ***\n");
00048 _LIT(KTxtSpecSt,"*** SUBSCRIBER [STANDARD STATE] ***\n");
00049 _LIT(KTxtStPublish,"**** PUBLISH [STANDARD STATE] ****\n\n");
00050 _LIT(KTxtDefine,"Defining a byte-array property and allocating memory for the same...\n");
00051 _LIT(KTxtValChange,"Value of the property : %d\n");
00052 _LIT(KTxtPESub,"*** SUBSCRIBER [PURE EVENT] ***\n");
00053 _LIT(KTxtPEPublish,"*** PUBLISHER [PURE EVENT] ***\n");
00054 _LIT(KTxtInt,"Publishing : %d\n");
00055
00056
00057 _LIT(KTxtEPOC32EX,"Project::Publish and Subscribe");
00058 _LIT(KTxtExampleCode,"Publish and Subscribe Example");
00059 _LIT(KFormatFailed,"failed: leave code=%d");
00060 _LIT(KTxtOK,"ok");
00061 _LIT(KTxtPressAnyKey," [press any key]");
00062
00063 static _LIT_SECURITY_POLICY_PASS(KAllowAllPolicy);
00064
00065 _LIT(KTextConsoleTitle, "Console");
00066 _LIT(KTextFailed, " failed, leave code = %d");
00067 _LIT(KTextPressAnyKey, " [press any key]\n");
00068
00069 #endif