Disclosure of Invention
In view of the above, the main objective of the present invention is to provide a method and an apparatus for implementing hierarchical display of private information, which hierarchically manage information stored in a mobile terminal according to privacy levels, so that management of the private information is more optimized.
In order to achieve the purpose, the technical scheme of the invention is realized as follows:
the invention provides a method for realizing classified display of private information, which comprises the following steps:
setting the privacy level of the mobile terminal and the privacy level of the privacy information;
and comparing the privacy level of the privacy information with the privacy level of the mobile terminal, and determining the display result of the privacy information according to the comparison result.
In the foregoing solution, the determining a display result of the private information according to the comparison result specifically includes: if the privacy level of the privacy information is lower than or equal to the privacy level of the mobile terminal, displaying the privacy information and/or displaying information corresponding to the privacy information item; and if the privacy level of the privacy information is higher than the privacy level of the mobile terminal, shielding the privacy information and/or shielding information corresponding to the privacy information item.
In the above scheme, the setting of the privacy level of the mobile terminal includes: a level rank, a level name, and a level password;
the setting of the privacy level of the private information comprises: the class name.
In the foregoing solution, when the privacy level of the mobile terminal is switched, the method further includes: reading the privacy level of the mobile terminal set by the user, comparing the privacy level with the privacy level of the current mobile terminal, and allowing the mobile terminal to be switched to a new privacy level after the user inputs a correct password of the set privacy level if the privacy level of the mobile terminal set by the user is higher than the privacy level of the current mobile terminal; and if the privacy level of the mobile terminal set by the user is lower than or equal to the privacy level of the current mobile terminal, directly switching the mobile terminal to a new privacy level.
In the foregoing solution, before the setting the privacy level of the mobile terminal and the privacy level of the privacy information, the method further includes: the method comprises the steps of adding a privacy level setting function of the mobile terminal and a privacy level setting function of privacy information in advance, and setting level passwords corresponding to privacy levels.
The invention also provides a device for realizing the classified display of the private information, which comprises: the system comprises a privacy level setting module, a privacy level comparison module and a privacy information processing module; wherein,
the privacy level setting module is used for setting the privacy level of the mobile terminal and the privacy level of the privacy information;
the privacy level comparison module is used for comparing the privacy level of the privacy information with the privacy level of the mobile terminal and sending the comparison result to the privacy information processing module;
and the privacy information processing module is used for determining the display result of the privacy information according to the comparison result of the privacy level comparison module.
In the foregoing solution, the determining, by the privacy information processing module, the display result of the privacy information according to the comparison result specifically includes: if the privacy level of the privacy information is less than or equal to the privacy level of the mobile terminal, displaying the privacy information and/or displaying information corresponding to the privacy information item; and if the privacy level of the privacy information is larger than the privacy level of the mobile terminal, shielding the privacy information and/or shielding information corresponding to the privacy information item.
In the foregoing solution, the privacy level setting module includes: the mobile terminal setting module and the privacy information setting module; wherein,
the mobile terminal setting module is used for setting the privacy level of the mobile terminal; the privacy level setting of the mobile terminal includes: a level rank, a level name, and a level password;
the privacy information setting module is used for setting the privacy level of the privacy information; the setting of the privacy level of the private information comprises: the class name.
In the above scheme, the mobile terminal setting module is further configured to, when the privacy level of the mobile terminal is switched, read the privacy level of the mobile terminal set by the user, compare the privacy level with the current privacy level of the mobile terminal, and if the privacy level of the mobile terminal set by the user is higher than the privacy level of the current mobile terminal, allow the mobile terminal to be switched to a new privacy level after the user inputs a correct password of the set privacy level; and if the privacy level of the mobile terminal set by the user is lower than or equal to the privacy level of the current mobile terminal, directly switching the mobile terminal to a new privacy level.
The invention provides a method and a device for realizing classified display of private information, which set the privacy level of a mobile terminal and the privacy level of the private information; and comparing the privacy level of the privacy information with the privacy level of the mobile terminal, and determining the display result of the privacy information according to the comparison result. By adopting the method and the device, the privacy information of the mobile terminal can be managed according to different privacy levels, so that the safety of the information in the mobile terminal is effectively protected, the information management of the mobile terminal is optimized, the use of a user is facilitated, and the method and the device have higher practical value.
Detailed Description
The basic idea of the invention is: setting the privacy level of the mobile terminal and the privacy level of the privacy information; and comparing the privacy level of the privacy information with the privacy level of the mobile terminal, and determining the display result of the privacy information according to the comparison result.
The solution according to the invention is described in detail below with reference to specific embodiments and the accompanying drawings.
The first embodiment is as follows:
when setting privacy levels of private information such as phonebook entries, the method for implementing hierarchical display of private information provided by the present invention, as shown in fig. 1, comprises the following steps:
step 101: a privacy level setting function of a mobile terminal and a privacy level setting function of a phonebook entry are added in advance:
firstly, adding a privacy level setting function in a setting module of the mobile terminal, and providing the user with viewing and operation in a menu mode; wherein the privacy level setting of the mobile terminal includes: a level rank, a level name, and a level password; in this embodiment, the level grades may include 1-3 grades, and the level names may be divided into: general, secret, and confidential; the level password may be set or modified by the user according to the level and/or privacy name; the implementation function of the "privacy level setting" function may be implemented in the following manner:
struct Privacy_level
{
int level; // class rating
char name [65 ]; // class name
char combination [9 ]; // class cipher
};
Next, a privacy level setting function is added to the attribute information of the phonebook entry, such as: the level name is provided for the user to view and operate in a menu mode; the invention can respectively realize the hierarchical management of the privacy information such as short messages, call records and the like stored in the mobile terminal by adding the privacy level setting function of the telephone number to the entries of the telephone directory; in this embodiment, a level name variable may be added to the structure storing phonebook entry data, which implements the function:
struct contact_item
{
……
char name [65 ]; // class name
……
};
Step 102: setting level passwords of each privacy level of the mobile terminal;
in this step, after the mobile terminal leaves the factory, the initial level name of the mobile terminal is defaulted to be general, the level grade is defaulted to be 1 grade, and the level password can be a default character string or defaulted to be none; the user can set corresponding level passwords for each privacy level in advance through the privacy level setting menu and store the level passwords by the mobile terminal; when a user sets the privacy level of the mobile terminal as secret, if the level password with the level of 1 is a default character string, the user enters the secret level after inputting the default character string, and can reset and store the level password corresponding to the secret level under the secret level; if the level password with the level of 1 is none, the user can directly enter the secret level, set the level password corresponding to the secret level and store the level password.
Step 103: setting a privacy level of the mobile terminal and a privacy level of the phonebook entry;
in this step, the user may set the level name of the mobile terminal through the "privacy level setting" menu to set the level of the mobile terminal, for example: when the user sets the level name of the mobile terminal as secret through a privacy level setting menu, namely the level grade of the mobile terminal is set as 2 grade, and the level password corresponds to the secret level;
setting privacy level attributes of the telephone number through an attribute setting menu of the telephone directory entry, and storing the set privacy level attributes and information such as the telephone number, the name, the email address and the like as attribute information of the entry; for example: the telephone number is: the level name of 1234 entry is set to absolute, and the privacy level for that phone number in the phonebook corresponds to level 3.
Step 104: comparing the privacy level of the phonebook entry with the privacy level of the mobile terminal when the user opens the information corresponding to the phonebook entry, and displaying the information corresponding to the phonebook entry if the privacy level of the phonebook entry is lower than or equal to the privacy level of the mobile terminal; otherwise, the information corresponding to the phonebook entry is masked.
In this step, the opening of the information corresponding to the phonebook entry by the user may include: a certain telephone number in the telephone directory, and information such as short messages or call records corresponding to the telephone number can be searched for the privacy level of the telephone number according to the telephone number of the short message or the call record; if the privacy level of the telephone number is lower than or equal to the privacy level of the mobile terminal, displaying the telephone number and information such as a short message or a call record corresponding to the telephone number; if the privacy level of the telephone number is higher than that of the mobile terminal, the telephone number and information such as short messages or call records corresponding to the telephone number are shielded so as to protect the security of the information; if the information needs to be displayed, the privacy level of the mobile terminal needs to be increased to be not lower than the privacy level of the information.
In the present invention, for privacy management of multimedia files such as pictures, sound recordings, notebooks, etc., privacy level attributes may be added to the stored data information of the files according to the above steps, and the privacy level of the files is set by the user, and then whether the files can be displayed is determined according to the privacy level of the mobile terminal, which is not described herein again.
Example two:
when the privacy level of the mobile terminal is switched, the method for realizing the graded display of the privacy information, which is provided by the invention, is shown in fig. 2 and comprises the following steps:
step 201: setting the privacy level of the mobile terminal;
in this step, when the mobile terminal is at a privacy level, such as level 2, the user may update and set the privacy level of the mobile terminal through the "privacy level setting" menu.
Step 202: reading the privacy level of the mobile terminal set by the user, comparing the privacy level with the privacy level of the current mobile terminal, and executing step 203 if the privacy level of the mobile terminal set by the user is higher than the privacy level of the current mobile terminal; otherwise, go to step 204;
in this step, for a mobile terminal at a privacy level, when a user modifies the privacy level of the mobile terminal through a "privacy level setting" menu, the mobile terminal reads the privacy level of the mobile terminal set by the user, compares the set privacy level of the mobile terminal with the privacy level of the current mobile terminal, and if the privacy level of the mobile terminal set by the user is higher than the privacy level of the current mobile terminal, performs step 203; if the privacy level of the mobile terminal set by the user is lower than or equal to the privacy level of the current mobile terminal, step 204 is performed.
Step 203: prompting the user to input the password with the set privacy level, judging whether the level password input by the user is correct or not, and executing step 204 if the level password input by the user is correct; otherwise, returning to step 203;
in this step, when the privacy level of the mobile terminal set by the user is higher than the privacy level of the current mobile terminal, the mobile terminal pops up a password input prompt box to request the user to input the password of the set privacy level; and comparing the input password with the password of the corresponding level stored in the mobile terminal, and judging whether the level password input by the user is correct.
Step 204: and the mobile terminal is switched to a new privacy level, and the privacy information stored in the mobile terminal is updated and displayed according to the new privacy level.
In this step, after the mobile terminal switches to the new privacy level, the level class, the level name and the level password are correspondingly adjusted according to the new privacy level.
In order to implement the method, the present invention further provides an apparatus for implementing hierarchical display of private information, as shown in fig. 3, the apparatus includes: the system comprises a privacy level setting module, a privacy level comparison module and a privacy information processing module; wherein,
the privacy level setting module is used for setting the privacy level of the mobile terminal and the privacy level of the privacy information;
the privacy level comparison module is used for comparing the privacy level of the privacy information with the privacy level of the mobile terminal and sending the comparison result to the privacy information processing module;
and the privacy information processing module is used for determining the display result of the privacy information according to the comparison result of the privacy level comparison module.
The privacy information processing module determines a display result of the privacy information according to the comparison result, and specifically includes: if the privacy level of the privacy information is lower than or equal to the privacy level of the mobile terminal, displaying the privacy information and/or displaying information corresponding to the privacy information item; and if the privacy level of the privacy information is higher than the privacy level of the mobile terminal, shielding the privacy information and/or shielding information corresponding to the privacy information item.
The privacy level setting module includes: the mobile terminal setting module and the privacy information setting module; wherein,
the mobile terminal setting module is used for setting the privacy level of the mobile terminal; the privacy level setting of the mobile terminal includes: a level rank, a level name, and a level password;
the privacy information setting module is used for setting the privacy level of the privacy information; the setting of the privacy level of the private information comprises: the class name.
The mobile terminal setting module is further used for reading the privacy level of the mobile terminal set by the user when the privacy level of the mobile terminal is switched, comparing the privacy level with the privacy level of the current mobile terminal, and allowing the mobile terminal to be switched to a new privacy level after the user inputs a correct password of the set privacy level if the privacy level of the mobile terminal set by the user is higher than the privacy level of the current mobile terminal; and if the privacy level of the mobile terminal set by the user is lower than or equal to the privacy level of the current mobile terminal, directly switching the mobile terminal to a new privacy level.
The above description is only exemplary of the present invention and should not be taken as limiting the scope of the present invention, and any modifications, equivalents, improvements, etc. that are within the spirit and principle of the present invention should be included in the present invention.