00001 /* 00002 * Modification History 00003 * 00004 * 2002-July-31 Jason Rohrer 00005 * Created. 00006 * 00007 * 2002-October-29 Jason Rohrer 00008 * Changed comments to work better with doxygen. 00009 */ 00010 00011 00012 00013 /** 00014 * @file konspire2b_cpp_only.h 00015 * 00016 * This file contains a more advanced broadcast initiation function 00017 * that requires C++. 00018 * 00019 * @author Jason Rohrer 00020 */ 00021 00022 00023 00024 #ifndef KONSPIRE_2B_API_CPP_ONLY_INCLUDED 00025 #define KONSPIRE_2B_API_CPP_ONLY_INCLUDED 00026 00027 00028 00029 #include "ContentSource.h" 00030 00031 00032 00033 /** 00034 * Sends a broadcast, specifying a content source instead of a file. 00035 * This version of initiateBroadcast allows for content that is not 00036 * in a file (for example, content that is generated on the fly). 00037 * 00038 * Note: 00039 * If a sender key exists for the specified channel, it will be used 00040 * to sign the broadcast. 00041 * 00042 * @param inChannelName the channel to send the broadcast on. 00043 * @param inBroadcastName the name of the broadcast (for example, 00044 * the file name, if appropriate). 00045 * @param inBroadcastComment the comment for the broadcast. 00046 * @param inContentSource the source for the content. 00047 * Will be destroyed by the callee. 00048 * @param inContentType the MIME type of the content, or NULL if the 00049 * content has no type. 00050 * 00051 * Example: <PRE> 00052 * k2bInitiateBroadcast( "testChan", 00053 * "testBroadcast.txt", 00054 * "This is a test broadcast.", 00055 * new FileContentSource( 00056 * new File( NULL, "myFile.txt" ) ), 00057 * "text/plain" ); 00058 * </PRE> 00059 */ 00060 void k2bInitiateBroadcast( char *inChannelName, 00061 char *inBroadcastName, 00062 char *inBroadcastComment, 00063 ContentSource *inContentSource, 00064 char *inContentType ); 00065 00066 00067 00068 #endif 00069 00070 00071 00072 00073 00074 00075