Selecting a Linux software project for college students (1) Hard Disk File quick search tool hdd_search under Linux

Source: Internet
Author: User
Tags gtk

Reprinted please indicate the source and the author contact: http://blog.csdn.net/mimepp
Contact information: Yu Tao <yut616 at Sohu dot com>

Read the preface first:

Selection of Linux software hands-on projects for college students (in sequence)


Project name:

Hard Disk File quick search tool hdd_search in Linux


Project requirements:

Functions such as CD Manager:

Http://www.newhua.com/soft/77809.htm

Search for the hard disk.

You can use GTK to scan hard disks in Linux and quickly search for files on your hard disk.

Create an hdd_search _ (your_name) project on Google Code.


Basic functions:

1. Scan different directories on your hard disk

2. Quickly search for files

3. Use glade and GTK to implement the UI and add the simplest Search function.

4. The database uses SQLite

5. Only English menus are supported.

6. The complete UI operation process must be consistent with the CD manager.

7. Use Dynamic Link Libraries

8. C Language Development


Advanced requirement 1:

1. Remove all compilation warning

2. Use valgrind to check memory leakage

3. It takes one to three months to query various materials and optimize the search speed repeatedly, such as using indexes.

No less than three optimizations.

And list the optimized test data to the Wiki.

4. All advanced requirements can be controlled using Feature

Control whether to compile.


Advanced requirement 2:

1. added a Chinese menu switch on the menu page.

2. added the function of selecting different Font types, including wenquanyi and .

Familiar with FreeType interfaces and usage

3. Use static Link Libraries


Advanced requirement 3:

1. added Arabic to the menu language on the interface.

The menu is from right to left, and the text is also from right to left.

2. Added communication between processes and received external commands to start searching.

After receiving the IPC command, you can directly click the search button to display the result on the main interface instead of sending it to the outside.

Inter-process communication methods, using pipe, socket, and shared memory in sequence
.


Advanced requirement 4:

1. Use fuse (Glib) to implement the above IPC communication and send the SEARCH Command

The tool that sends commands can be the kernel tool that comes with Linux.

2. Use gupnp lib to implement a built-in service and provide a single function, that is, to receive the SEARCH Command and search for a keyword

Gupnp is also a communication method that can call services between different machines.

The tool used to send an UPNP request can be Intel UPnP tool (device spy.exe ):

Http://blog.csdn.net/mimepp/article/details/5457565

Or a tool that comes with gupnp.


Advanced requirement 5:

1. Create an Apache server + CGI to receive external search commands.

2. Add the PHP module to Apache and use the PHP page to receive search commands. The search results are returned to the page in text format and can be displayed in Chinese.

3. Add libgd to PhP to return the search results to the page in the form of images, such:



Advanced requirement 6:

1. added the playback function of double-click the video format MKV, as long as the MKV format can be played.

Use UPnP to call gmediarender on a Linux PC to implement playback control.


Advanced requirement 7:

1. Compile and run the tool on Windows.

Applications developed by GTK can be cross-platform

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.