Summary of the invention
The method that the purpose of this invention is to provide a kind of recording diaries on television, the technical problem that solves provides a kind of equipment of recording diaries on television, realize recording diaries by television set, diary is more laid particular emphasis on the media content that audio frequency, video, photo etc. can bring seeing and hearing enjoyment for the user, thereby can with household, friend share in baby's developmental process warm constantly and splendid moment, increased satisfaction of users and increased the fail safe of individual privacy.
For solving the problems of the technologies described above, the present invention by the following technical solutions: a kind of method of recording diaries on television may further comprise the steps: (1), user open television set and enter the function interface of keeping a diary; (2), user's typing is recorded people's information, television set with information stores in memory and start the clock; (3), the user is provided with time, weather and the diary information on the same day; (3), the user in the function interface of keeping a diary Edit Text information, recorded video, take pictures; (4), the user confirm the storage after, television set with information stores in memory;
(5), the user is to browse or retrieval mode is turned on diary information and show, play diary information on television set.
User of the present invention retrieves the diary information that is write down by the mode of search date, address name or keyword.
The people's of being recorded of the present invention information comprises year of birth, the moon, day and name field ID.
Diary information of the present invention comprises diary title, text message, photographic intelligence and video information.
Television set input equipment of the present invention is remote controller or external input equipment.
The remote controller of television set of the present invention is provided with the information setting module, is used for Edit Text information, recorded video and takes pictures.
The present invention compared with prior art, adopt and increase mode selection module, user's diary information editor module and diary information memory module in the television set, on television set, realize the method for recording diaries by remote controller, diary is recorded in diary information memory module in the television set in the mode of text, picture or video, by the television for play diary information, can with the shirtsleeve operation replace complex pass through the computer record diary, increased satisfaction of users and guaranteed the fail safe of individual privacy.
Embodiment
The invention will be further described below in conjunction with drawings and Examples.
The method of recording diaries on television of the present invention may further comprise the steps: (1), user open television set and enter the function interface of keeping a diary; (2), user's typing is recorded people's information, television set with information stores in memory and start the clock; (3), the user is provided with time, weather and the diary information on the same day; (3), the user in the function interface of keeping a diary Edit Text information, recorded video, take pictures; (4), the user confirm the storage after, television set with information stores in memory; (5), the user is to browse or retrieval mode is turned on diary information and show, play diary information on television set.The diary information that the user writes down by the information retrieval of search date, name or keyword mode, the described people's of being recorded information comprises year of birth, the moon, day and name field ID, and diary information comprises diary title, text message, photographic intelligence and video information.
As shown in Figure 1, be the FB(flow block) of recording diaries method of the present invention, its idiographic flow is as follows: one, enter the diary module, confirm then to enter step 2; Two, television set shows " today, you kept a diary? " behind the statement, be end operation then, do not enter step 3; Three, the user is provided with time, weather condition and the title on the same day by remote controller; Four, Edit Text information, recorded video and take pictures after, storage is then to store diary information, otherwise end operation; Five, the storage diary information that displays the play after the diary information, end operation.
As shown in Figure 2, television set of the present invention comprises display module and master control module, display module connects the master control module, be provided with mode selection module in the described television set, the diary information editor module, the diary information memory module, described mode selection module connects the master control module, the master control module connects the diary information editor module, the diary information editor module connects the diary information memory module, the diary information memory module is external memory storage or television set internal storage, the input equipment of television set is the remote controller or the external input equipment of television set, and remote controller is provided with the information setting module.
As shown in Figure 3, when TV enters the normal play picture,, can select to enter the journal record interface with remote controller by TV menu if the user need enable the function of keeping a diary, with function setting is opening, by the combobox selection date on the same day,, select weather by combobox as 2009-7-29, as fine day, by remote controller or the external input equipment input header of TV, can walk as baby, how many days frame has selected baby by getting off.After these information are set, the user can be by remote controller or external input equipment input diary text, by camera baby is recorded a video, take baby's still photo by camera, and by button storage or cancel this operation, if the user wants to browse the diary information of having stored, the date that can select according to the user or name or keyword message are browsed pairing diary information of scheduled date or name or keyword, the text message of corresponding diary information is reprinted by system, video information and static graphic information, the user can select to browse to watch.
As most preferred embodiment, the model that TV SKD adopts Morningstar Corporation to produce is the TV SKD of MSD209, and the model that multimedia processor adopts Beijing to attempt company's production is the multimedia processor of CC1100.
In order to satisfy the method that can on television set, realize recording diaries, the user operates the menu bar of television set by remote controller, television set is given an order, open or close the recording diaries function, the source code of realize opening or closing the recording diaries functional module is as follows:
Static bool lc_bEnableDiaryFunc=false; Static global variable of/* definition write down open or
Close the functional status * that keeps a diary/
Void Diary_EnableFunction (void)/* open the function * that keeps a diary/
{
lc_bEnableDiaryFunc=true;
}
Void Diary_DisableFunction (void)/* close the function * that keeps a diary/
{
lc_bEnableDiaryFunc=false;
}
Bool Diary_GetFunctionStatus (void)/* according to return value judge the current function of keeping a diary whether open */
{
return?lc_bEnableDiaryFunc;
}
The user is by selecting to select video or picture to come preview in memory device in the menu, its source code of realizing this function is as follows:
MspPath pPlaybackPath=NULL; / * to the definition * of MspPath type/
void?Diary_Play(const?char*pszFileName)
{
EnablePath();
if((pszFileName!=NULL)&&(strlen(pszFileName)>0))
{
pPlaybackPath->OpenFile(pszFileName);
MspPath∷SetMute(FALSE);
}
else
{
printf(″\n?no?file!!!!\n″);
}
}
User's Edit Text information in the function interface of keeping a diary realizes by following code:
// input method type
typedef?enum
{
E_IME_TYPE_T9_ENGLISH=0, //T9 English
E_IME_TYPE_T9_PINYIN, //T9 phonetic
E_IME_TYPE_NUMBER, // numeral
E_IME_TYPE_SYMBOL, // punctuation mark
E_NUM_OF_IME_TYPE,
}KKGUI_IME_TYPE_E;
typedef?unsigned?short?KGCHAR; /*16?bit?unsigned?for?UNICODE*/
typedef?enum
{
E_INPUT_ITEM_FOCUS_TEXT=0, //the Focus input characters
E_INPUT_ITEM_FOCUS_PINYIN, //the Focus input Pinyin
E_INPUT_ITEM_FOCUS_IME, //selection of Focus input method
E_NUM_OF_INPUT_ITEN_FOCUS,
}INPUT_ITEM_FOCUS_E;
// input frame type entries
typedef?struct_MenuInputItem
{
bool?bInEditMode;
KKGUI_INPUT_T?stInput;
INPUT_ITEM_FOCUS_E?eFocusArea;
Const KGCHAR*pusChinese; // middle the literal found
Int iChinesePos; The position of // current focus
char?szPinyin[32];
int?iPinyinPos;
int?iCurPos;
KGCHAR szCode[32]; // character string (the word of affirmation that is used for showing
Symbol will become * number)
}MenuInputItem;
User's typing is recorded people's information, and television set is with the code of information stores in memory (remarks: after the user was provided with the current time, system for TV set had RTC real-time clock administrative time, does not need to operate starting the clock)
The user preserves certain day diary information in specified file, is filename with date of certain day for example, and as 20090729.dat, code is as follows:
void?Diary_SaveDetailedInfo(char?*pszFileName,KKGUI_DIARY_INFO_T
stDetailedInfo)
{
FILE*fp=NULL;
if((pszFileName==NULL)||(strlen(pszFileName)==0)||(fp=
fopen(pszFileName,″wb″)==NULL))
return;
fwrite(&stDetailedInfo,1,sizeof(KKGUI_DIARY_INFO_T),fp);
fclose(fp);
}
When selecting to browse certain day diary, the user realizes by following code:
KKGUI_DIARY_INFO_T?Diary_GetDetailedInfo(char*pszFileName)
{
KKGUI_DIARY_INFO_T?stDetailedInfo;
FILE*fp=NULL;
if((pszFileName==NULL)||(strlen(pszFileName)==0)||(fp=
fopen(pszFileName,″rb″)==NULL))
return;
fread(&stDetailedInfo,1,sizeof(KKGUI_DIARY_INFO_T),fp);
fclose(fp);
return?stDetailedInfo;
}