File: contact.cpp

package info (click to toggle)
libqxt 0.6.2-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 19,000 kB
  • ctags: 6,583
  • sloc: cpp: 57,582; xml: 296; sh: 256; makefile: 60; php: 14
file content (20 lines) | stat: -rw-r--r-- 285 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include "contact.h"



QDataStream &operator<<(QDataStream &out,const Contact &c)
{
    out<<c.name;
    out<<c.phone;
    out<<c.address;
    return out;
}
QDataStream &operator>>(QDataStream &in, Contact &c )
{
    in>>c.name;
    in>>c.phone;
    in>>c.address;
    return in;
}